docs.unity.cn
    Show / Hide Table of Contents

    Struct PunctualLightData

    The point/spot light data passed to the deferred shaders.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Rendering.Universal
    Syntax
    public struct PunctualLightData

    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

    flags

    The flags used.

    Declaration
    public int flags
    Field Value
    Type Description
    Int32

    layerMask

    The layer mask used.

    Declaration
    public uint layerMask
    Field Value
    Type Description
    UInt32

    occlusionProbeInfo

    The occlusion probe info.

    Declaration
    public Vector4 occlusionProbeInfo
    Field Value
    Type Description
    Vector4

    radius

    The radius of the light.

    Declaration
    public float radius
    Field Value
    Type Description
    Single

    spotDirection

    The direction for spot lights.

    Declaration
    public Vector3 spotDirection
    Field Value
    Type Description
    Vector3

    wsPos

    The world position.

    Declaration
    public Vector3 wsPos
    Field Value
    Type Description
    Vector3
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 31 July 2023