Enum ShaderOptions
Project-wide shader configuration options.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[GenerateHLSL(PackingRules.Exact, true, false, false, 1, false, false, false, -1, "/Users/robje/Library/Application Support/unity/editor/documentation/build/com.unity.render-pipelines.high-definition-config@13.1/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 |
---|---|---|
AreaLights | Support for area lights. |
|
BarnDoor | Support for barn doors. |
|
CameraRelativeRendering | Uses camera-relative rendering to enhance precision. |
|
ColoredShadow | Supports colored shadows in shaders. |
|
FPTLMaxLightCount | Maximum number of lights for a fine pruned light tile. This number can only be the prespecified possibilities in FPTLMaxLightSizes Lower count will mean some memory savings. Note: For any rendering bigger than 4k (in native) it is recommended to use Low count per tile, to avoid possible artifacts. |
|
GlobalMipBias | Support to apply a global mip bias on all texture samplers of HDRP. |
|
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. |
|
XrMaxViews | Maximum number of views for XR. |