-
-
Notifications
You must be signed in to change notification settings - Fork 26
Tiled Lighting (Forward Plus)
Because traditional rendering of additional lights in a forward renderer is quite expensive, the number of per-object lights is limited to 4.
To bypass that limitation and achieve highly performant rendering of scenes with hundreds of lights in view, Toon RP supports Tiled Lighting (i.e., Forward+). In a nutshell, it splits the screen into small tiles (16x16 pixels in case of Toon RP) and find the lights potentially influencing each tile.
This is done in compute shaders, therefore your target platforms must support them (see the official documentation page) to verify support.
To enable Tiled Lighting in Toon RP:
- In the pipeline asset's
Camera Renderer
settings, ensure you haveAdditional Lights
set toPer Pixel
; - Enable
Tiled Lighting
.
📝 Note: Tiled Lighting requires Depth Pre-Pass.
You can also configure the maximum number of lights that can be assigned to a tile: Max Lights Per Tile
. Keep the number as low as possible to improve performance and video memory usage. However, reaching the limit in-game will introduce noticeable blocky artifacts.
- Having a crisp anti-aliased global ramp may introduce artifacts.
Getting Started
Platform Support
Lighting and Shadows
- Global Ramp
- Shadows
- Variance Shadow Maps (VSM)
- Soft Shadows
- Additional Lights
- Additional Light Shadows
- Tiled Lighting (Forward+)
- Blob Shadows
- Fake Additional Lights
- Baked Lighting
Render Quality
Miscellaneous
Post-Processing
- Post-Processing Stack
- Bloom
- Inverted Hull Outline
- Screen-Space Outline
- SSAO
- Motion Blur
- Sharpen
- Light Scattering
Making Custom Shaders
Debugging