Orthographic Camera
advanced tasksVolumetric Lights 2 (URP) · Common Tasks
Orthographic Camera Support
Volumetric Lights 2 supports orthographic cameras with a small shader modification.
Enabling Orthographic Support
- Locate the file
VolumetricLights/Resources/Shaders/Options.hlsl - Uncomment the following line:
// Change this:
//#define ORTHO_SUPPORT
// To this:
#define ORTHO_SUPPORT
Note: This define is disabled by default because orthographic projection adds a small overhead to the shader. Only enable it if your project uses an orthographic camera.
Was this page helpful?
Suggest an improvement
Help us improve this documentation page.