Skip to main content
Version: 5.x

Nodes > Main > Shader

Shader

The final outputs of the vertex and fragment shaders.

Inputs

NameTypeDescription
Color (Pixel)colorFinal color output of the fragment shader
DepthfloatThe depth value that should be output by the fragment shader
World Position (Vertex)floatFinal vertex world position to output from the vertex shader
World Normal (Vertex)floatFinal normal vector to output from the vertex shader
World Tangent (Vertex)floatFinal tangent vector to output from the vertex shader
GSplat Point Size (Vertex)floatOverride the size (radius) of the splat, specified in pixels.

Properties

NameTypeDescription
TypedropdownIf set to post effect, it will skip all world vertex positioning, useful for making screen space shader. If set to Hair, this material must be assigned to a Hair Mesh Visual to be rendered properly. Transforms vertices using data from the Hair Mesh Visual component.
DepthboolWhen enabled, allows custom depth values to be set.
Depth ModedropdownDepth Mode
Motion Vector PassdropdownMotion Vector Pass
Allow Negative ColorsboolIf enabled, negative values will be allowed in the final color output
Was this page helpful?
Yes
No