Enum ShaderOptions
Project-wide shader configuration options.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[GenerateHLSL(PackingRules.Exact, true, false, false, 1, false, false, false, -1)]
public enum ShaderOptions
Remarks
This enum will generate the proper shader defines.
Fields
| Name | Description | Value |
|---|---|---|
| AreaLights | Support for area lights. |
|
| BarnDoor | Support for barn doors. |
|
| CameraRelativeRendering | Uses camera-relative rendering to enhance precision. |
|
| ColoredShadow | Supports colored shadows in shaders. |
|
| PrecomputedAtmosphericAttenuation | Precomputes atmospheric attenuation for the directional light on the CPU. This makes it independent from the fragment's position, which increases performance but reduces accuracy. |
|
| PreExposition | Uses pre-exposition to enhance color precision. |
|
| ProbeVolumesAdditiveBlending | Probe volume supports additive blending. |
|
| ProbeVolumesBilateralFilteringMode | The probe volume filtering mode. |
|
| ProbeVolumesEncodingMode | The probe volume encoding method. |
|
| ProbeVolumesEvaluationMode | The probe volume evaluation mode. |
|
| XrMaxViews | Maximum number of views for XR. |