docs.unity3d.com
    Show / Hide Table of Contents

    Class ShaderConfig

    Project-wide shader configuration options. This class reflects the enum. Use it in C# code to check the current configuration.

    Inheritance
    Object
    ShaderConfig
    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    public class ShaderConfig

    Fields

    FPTLMaxLightCount

    Indicates the maximum number of lights available for Fine Prunning Tile Lighting.

    Declaration
    public static int FPTLMaxLightCount
    Field Value
    Type Description
    Int32
    See Also
    FPTLMaxLightCount

    k_XRMaxViewsForCBuffer

    Maximum number of XR views for constant buffer allocation.

    Declaration
    public const int k_XRMaxViewsForCBuffer = 2
    Field Value
    Type Description
    Int32

    s_AreaLights

    Indicates whether to support area lights.

    Declaration
    public static int s_AreaLights
    Field Value
    Type Description
    Int32
    See Also
    AreaLights

    s_BarnDoor

    Indicates whether to support barn doors.

    Declaration
    public static int s_BarnDoor
    Field Value
    Type Description
    Int32
    See Also
    BarnDoor

    s_CameraRelativeRendering

    Indicates whether to use camera-relative rendering to enhance precision.

    Declaration
    public static int s_CameraRelativeRendering
    Field Value
    Type Description
    Int32
    See Also
    CameraRelativeRendering

    s_GlobalMipBias

    Indicates whether to support application of global mip bias on all texture samplers of hdrp.

    Declaration
    public static bool s_GlobalMipBias
    Field Value
    Type Description
    Boolean
    See Also
    GlobalMipBias

    s_PrecomputedAtmosphericAttenuation

    Indicates whether to precompute atmosphere attenuation for the directional light on the CPU.

    Declaration
    public static int s_PrecomputedAtmosphericAttenuation
    Field Value
    Type Description
    Int32
    See Also
    PrecomputedAtmosphericAttenuation

    s_PreExposition

    Indicates whether to use pre-exposition to enhance color prevision.

    Declaration
    public static int s_PreExposition
    Field Value
    Type Description
    Int32
    See Also
    PreExposition

    s_XrMaxViews

    Specifies the maximum number of views to use for XR rendering.

    Declaration
    public static int s_XrMaxViews
    Field Value
    Type Description
    Int32
    See Also
    XrMaxViews
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023