{}!Google Tag Manager end}} Struct ShaderInput.LightData | Universal RP | 14.0.9
docs.unity3d.com
    목차 표시/숨기기

    Struct ShaderInput.LightData

    Container struct for various data used for lights in URP.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Rendering.Universal
    Syntax
    [GenerateHLSL(PackingRules.Exact, false, false, false, 1, false, false, false, -1, "C:\\temp\\com.unity.render-pipelines.universal@14.0\\Packages\\com.unity.render-pipelines.universal\\ShaderLibrary\\ShaderTypes.cs")]
    public struct LightData

    Fields

    attenuation

    The attenuation of the light.

    Declaration
    public Vector4 attenuation
    Field Value
    Type Description
    Vector4

    color

    The color of the light.

    Declaration
    public Vector4 color
    Field Value
    Type Description
    Vector4

    layerMask

    The layer mask used.

    Declaration
    public uint layerMask
    Field Value
    Type Description
    UInt32

    occlusionProbeChannels

    The channel for probe occlusion.

    Declaration
    public Vector4 occlusionProbeChannels
    Field Value
    Type Description
    Vector4

    position

    The position of the light.

    Declaration
    public Vector4 position
    Field Value
    Type Description
    Vector4

    spotDirection

    The direction of the light (Spot light).

    Declaration
    public Vector4 spotDirection
    Field Value
    Type Description
    Vector4
    맨 위로
    Copyright © 2023 Unity Technologies —
    • Your Privacy Choices (Cookie Settings)