Enum ShaderOptions
Project-wide shader configuration options.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[GenerateHLSL(PackingRules.Exact, true, false, false, 1, false, false, false, -1, "C:\\temp\\com.unity.render-pipelines.high-definition-config@11.0\\Packages\\com.unity.render-pipelines.high-definition-config\\Runtime\\ShaderConfig.cs")]
public enum ShaderOptions
Remarks
This enum will generate the proper shader defines.
Fields
Name | Description | Value |
---|---|---|
BarnDoor | Support for barn doors. |
0 |
EnableProbeVolumes | Whether probe volumes are enabled. |
0 |
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. |
0 |
AreaLights | Support for area lights. |
1 |
CameraRelativeRendering | Uses camera-relative rendering to enhance precision. |
1 |
ColoredShadow | Supports colored shadows in shaders. |
1 |
PreExposition | Uses pre-exposition to enhance color precision. |
1 |
ProbeVolumesAdditiveBlending | Probe volume supports additive blending. |
1 |
ProbeVolumesBilateralFilteringMode | The probe volume filtering mode. |
1 |
ProbeVolumesEncodingMode | The probe volume encoding method. |
1 |
XrMaxViews | Maximum number of views for XR. |
1 |