Struct Lit.SurfaceData | High Definition RP | 6.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Lit.SurfaceData

    Namespace: UnityEngine.Experimental.Rendering.HDPipeline
    Syntax
    [GenerateHLSL(PackingRules.Exact, false, false, true, 1000, false, false)]
    public struct SurfaceData

    Fields

    ambientOcclusion

    Declaration
    [MaterialSharedPropertyMapping(MaterialSharedProperty.AmbientOcclusion)]
    [SurfaceDataAttributes("Ambient Occlusion", false, false)]
    public float ambientOcclusion
    Field Value
    Type Description
    Single

    anisotropy

    Declaration
    [SurfaceDataAttributes("Anisotropy", false, false)]
    public float anisotropy
    Field Value
    Type Description
    Single

    atDistance

    Declaration
    [SurfaceDataAttributes("Transmittance Absorption Distance", false, false)]
    public float atDistance
    Field Value
    Type Description
    Single

    baseColor

    Declaration
    [MaterialSharedPropertyMapping(MaterialSharedProperty.Albedo)]
    [SurfaceDataAttributes("Base Color", false, true)]
    public Vector3 baseColor
    Field Value
    Type Description
    Vector3

    coatMask

    Declaration
    [SurfaceDataAttributes("Coat mask", false, false)]
    public float coatMask
    Field Value
    Type Description
    Single

    diffusionProfileHash

    Declaration
    [SurfaceDataAttributes("Diffusion Profile Hash", false, false)]
    public uint diffusionProfileHash
    Field Value
    Type Description
    UInt32

    geomNormalWS

    Declaration
    [SurfaceDataAttributes(new string[]{"Geometric Normal", "Geometric Normal View Space"}, true, false)]
    public Vector3 geomNormalWS
    Field Value
    Type Description
    Vector3

    ior

    Declaration
    [SurfaceDataAttributes("Index of refraction", false, false)]
    public float ior
    Field Value
    Type Description
    Single

    iridescenceMask

    Declaration
    [SurfaceDataAttributes("Iridescence Mask", false, false)]
    public float iridescenceMask
    Field Value
    Type Description
    Single

    iridescenceThickness

    Declaration
    [SurfaceDataAttributes("Iridescence Layer Thickness", false, false)]
    public float iridescenceThickness
    Field Value
    Type Description
    Single

    materialFeatures

    Declaration
    [SurfaceDataAttributes("MaterialFeatures", false, false)]
    public uint materialFeatures
    Field Value
    Type Description
    UInt32

    metallic

    Declaration
    [MaterialSharedPropertyMapping(MaterialSharedProperty.Metal)]
    [SurfaceDataAttributes("Metallic", false, false)]
    public float metallic
    Field Value
    Type Description
    Single

    normalWS

    Declaration
    [MaterialSharedPropertyMapping(MaterialSharedProperty.Normal)]
    [SurfaceDataAttributes(new string[]{"Normal", "Normal View Space"}, true, false)]
    public Vector3 normalWS
    Field Value
    Type Description
    Vector3

    perceptualSmoothness

    Declaration
    [MaterialSharedPropertyMapping(MaterialSharedProperty.Smoothness)]
    [SurfaceDataAttributes("Smoothness", false, false)]
    public float perceptualSmoothness
    Field Value
    Type Description
    Single

    specularColor

    Declaration
    [MaterialSharedPropertyMapping(MaterialSharedProperty.Specular)]
    [SurfaceDataAttributes("Specular Color", false, true)]
    public Vector3 specularColor
    Field Value
    Type Description
    Vector3

    specularOcclusion

    Declaration
    [SurfaceDataAttributes("Specular Occlusion", false, false)]
    public float specularOcclusion
    Field Value
    Type Description
    Single

    subsurfaceMask

    Declaration
    [SurfaceDataAttributes("Subsurface Mask", false, false)]
    public float subsurfaceMask
    Field Value
    Type Description
    Single

    tangentWS

    Declaration
    [SurfaceDataAttributes("Tangent", true, false)]
    public Vector3 tangentWS
    Field Value
    Type Description
    Vector3

    thickness

    Declaration
    [SurfaceDataAttributes("Thickness", false, false)]
    public float thickness
    Field Value
    Type Description
    Single

    transmittanceColor

    Declaration
    [SurfaceDataAttributes("Transmittance Color", false, false)]
    public Vector3 transmittanceColor
    Field Value
    Type Description
    Vector3

    transmittanceMask

    Declaration
    [SurfaceDataAttributes("Transmittance mask", false, false)]
    public float transmittanceMask
    Field Value
    Type Description
    Single
    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