docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering.Universal
    Assembly: Unity.RenderPipeline.Universal.ShaderLibrary.dll
    Syntax
    [GenerateHLSL(PackingRules.Exact, false, false, false, 1, false, false, false, -1, "C:\\temp\\com.unity.render-pipelines.universal@15.0\\Library\\PackageCache\\com.unity.render-pipelines.universal@15.0.7\\ShaderLibrary\\ShaderTypes.cs")]
    public struct ShaderInput.LightData

    Fields

    Name Description
    attenuation

    The attenuation of the light.

    color

    The color of the light.

    layerMask

    The layer mask used.

    occlusionProbeChannels

    The channel for probe occlusion.

    position

    The position of the light.

    spotDirection

    The direction of the light (Spot light).

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)