Orthographic Camera

advanced tasks

Volumetric Lights 2 (URP) · Common Tasks

Orthographic Camera Support

Volumetric Lights 2 supports orthographic cameras with a small shader modification.

Enabling Orthographic Support

  1. Locate the file VolumetricLights/Resources/Shaders/Options.hlsl
  2. 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?