Skip to content

General Overview

Custom Shaders Patch (CSP) is split into modules that can be disabled individually. Some options don't belong to any module, and a few features cannot be disabled. This section covers CSP's general features and configuration.

Modules

Lighting FX

Adds dynamic lighting to track and car lights, such as headlights. Track lights are set up by the track configuration; car lights can be defined in car configs — if not defined, they are guessed automatically based on the model, textures, manufacture year and other parameters. Rendering is accelerated with BVH-accelerated shading, supporting hundreds of lights at once.

Supported light types:

  • Point light
  • Spot light
  • Double trimmed spot light, used for headlights
  • Line light, used for underbody neons and similar

Extra FX

Adds extra rendering passes to collect more scene information, such as normal maps, depth or motion buffers. Based on that information, the following new effects become possible:

  • Local reflections (SSLR)
  • Ambient occlusion (SSAO or HBAO+)
  • New motion blur
  • Temporal antialiasing (TAA)
  • Simple local light bounces (SSGI)
  • Scene-wide light bounces (non-screen-space)
  • Volumetric lights
  • Fog blur

Section Contents

PageDescription
TroubleshootingCommon problems and solutions
FilteringEntity filtering, masks and extended filter syntax in configs
Linear Color SpaceDetails of the linear color space feature (added in v0.2.3)
Shader ReplacementsStatically replacing shaders, material parameters, textures and object properties
Model ReplacementsRemoving, replacing or inserting 3D model pieces
Scene QueriesAdvanced query syntax for nodes and meshes
Extra FX FlagsFlags related to Extra FX opacity, motion blur and TAA
Extra FX EmissiveEmissive meshes casting actual light onto nearby geometry
UV2Secondary UV mapping and decal texture overlay
Mesh AdjustmentAdjusting mesh object properties such as visibility, layers, etc.
Screenshots Name FormatCustom screenshot filename format (added in v0.1.60)

Source