Orthographic Camera

intermediate concepts

Volumetric 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

  1. Locate the file Options.hlsl in the VolumetricLights/Resources/Shaders folder.
  2. Find the following line and uncomment it:
// Change this:
//#define ORTHO_SUPPORT

// To this:
#define ORTHO_SUPPORT
  1. 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?