Orthographic Camera
intermediate conceptsVolumetric Lights 2 (Built-in) · Core Concepts
Orthographic Camera Support
Volumetric Lights 2 can work with orthographic cameras, but this requires enabling a shader define that is disabled by default to save shader variants.
Enabling Orthographic Support
- Locate the file
Options.hlslin theVolumetricLights/Resources/Shadersfolder. - Find the following line and uncomment it:
// Change this:
//#define ORTHO_SUPPORT
// To this:
#define ORTHO_SUPPORT
- Save the file. Unity will recompile the shaders automatically.
Note: Enabling orthographic support adds shader variants. Only enable it if your project actually uses orthographic cameras.
Was this page helpful?
Suggest an improvement
Help us improve this documentation page.