Struct ShadowData | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ShadowData

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: UnityEngine.Experimental.Rendering
    Syntax
    [GenerateHLSL(PackingRules.Exact, true, false, 1)]
    public struct ShadowData

    Fields

    _pad

    Declaration
    public Vector3 _pad
    Field Value
    Type Description
    Vector3

    edgeTolerance

    Declaration
    public float edgeTolerance
    Field Value
    Type Description
    System.Single

    id

    Declaration
    public uint id
    Field Value
    Type Description
    System.UInt32

    normalBias

    Declaration
    public Vector4 normalBias
    Field Value
    Type Description
    Vector4

    payloadOffset

    Declaration
    public uint payloadOffset
    Field Value
    Type Description
    System.UInt32

    pos

    Declaration
    public Vector3 pos
    Field Value
    Type Description
    Vector3

    proj

    Declaration
    public Vector4 proj
    Field Value
    Type Description
    Vector4

    rot0

    Declaration
    public Vector3 rot0
    Field Value
    Type Description
    Vector3

    rot1

    Declaration
    public Vector3 rot1
    Field Value
    Type Description
    Vector3

    rot2

    Declaration
    public Vector3 rot2
    Field Value
    Type Description
    Vector3

    scaleOffset

    Declaration
    public Vector4 scaleOffset
    Field Value
    Type Description
    Vector4

    shadowToWorld

    Declaration
    public Matrix4x4 shadowToWorld
    Field Value
    Type Description
    Matrix4x4

    shadowType

    Declaration
    public uint shadowType
    Field Value
    Type Description
    System.UInt32

    slice

    Declaration
    public float slice
    Field Value
    Type Description
    System.Single

    texelSizeRcp

    Declaration
    public Vector4 texelSizeRcp
    Field Value
    Type Description
    Vector4

    textureSize

    Declaration
    public Vector4 textureSize
    Field Value
    Type Description
    Vector4

    viewBias

    Declaration
    public Vector4 viewBias
    Field Value
    Type Description
    Vector4

    Methods

    PackShadowmapId(UInt32, UInt32)

    Declaration
    public void PackShadowmapId(uint texIdx, uint sampIdx)
    Parameters
    Type Name Description
    System.UInt32 texIdx
    System.UInt32 sampIdx

    PackShadowType(GPUShadowType, GPUShadowAlgorithm)

    Declaration
    public void PackShadowType(GPUShadowType type, GPUShadowAlgorithm algorithm)
    Parameters
    Type Name Description
    GPUShadowType type
    GPUShadowAlgorithm algorithm

    UnpackShadowmapId(out UInt32, out UInt32)

    Declaration
    public void UnpackShadowmapId(out uint texIdx, out uint sampIdx)
    Parameters
    Type Name Description
    System.UInt32 texIdx
    System.UInt32 sampIdx
    Back to top
    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