Singularity/Library/PackageCache/com.unity.shadergraph@12.1.11/Documentation~/Built-In-Blocks.md
2024-05-06 11:45:45 -07:00

2.6 KiB

Built In Blocks

Vertex Blocks

Name Type Binding Description
image Position Vector 3 Object Space Position Defines the absolute object space vertex position per vertex.
image Normal Vector 3 Object Space Normal Defines the absolute object space vertex normal per vertex.
image Tangent Vector 3 Object Space Tangent Defines the absolute object space vertex tangent per vertex.
image Color Vector 4 Vertex Color Defines vertex color. Expected range 0 - 1.

Fragment Blocks

Name Type Binding Description
image Base Color Vector 3 None Defines material's base color value. Expected range 0 - 1.
image Normal (Tangent Space) Vector 3 Tangent Space Normal Defines material's normal value in tangent space.
image Normal (Object Space) Vector 3 Object Space Normal Defines material's normal value in object space.
image Normal (World Space) Vector 3 World Space Normal Defines material's normal value in world space.
image Emission Vector 3 None Defines material's emission color value. Expects positive values.
image Metallic Float None Defines material's metallic value, where 0 is non-metallic and 1 is metallic.
image Specular Vector 3 None Defines material's specular color value. Expected range 0 - 1.
image Smoothness Float None Defines material's smoothness value. Expected range 0 - 1.
image Ambient Occlusion Float None Defines material's ambient occlusion value. Expected range 0 - 1.
image Alpha Float None Defines material's alpha value. Used for transparency and/or alpha clip. Expected range 0 - 1.
image Alpha Clip Threshold Float None Fragments with an alpha below this value are discarded. Expected range 0 - 1.