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

    Struct Hair.SurfaceData

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

    Fields

    ambientOcclusion

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

    diffuseColor

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

    geomNormalWS

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

    hairStrandDirectionWS

    Declaration
    [SurfaceDataAttributes("Hair Strand Direction", true, false)]
    public Vector3 hairStrandDirectionWS
    Field Value
    Type Description
    Vector3

    materialFeatures

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

    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

    rimTransmissionIntensity

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

    secondaryPerceptualSmoothness

    Declaration
    [SurfaceDataAttributes("Secondary Smoothness", false, false)]
    public float secondaryPerceptualSmoothness
    Field Value
    Type Description
    Single

    secondarySpecularShift

    Declaration
    [SurfaceDataAttributes("Secondary Specular Shift", false, false)]
    public float secondarySpecularShift
    Field Value
    Type Description
    Single

    secondarySpecularTint

    Declaration
    [SurfaceDataAttributes("Secondary Specular Tint", false, true)]
    public Vector3 secondarySpecularTint
    Field Value
    Type Description
    Vector3

    specularOcclusion

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

    specularShift

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

    specularTint

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

    transmittance

    Declaration
    [SurfaceDataAttributes("Transmittance", false, false)]
    public Vector3 transmittance
    Field Value
    Type Description
    Vector3
    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