How it worksLayerShaders
What is a MaskShader
A shader that blends the Blend and Base inputs of a MaskNode.
A MaskShader is used in a MaskMaterial. It has its own setup macros and layer variables. A MaskShader handles the blending of the two inputs of a MaskNode, Blend and Base. See MaskShader reference.
A MaskShader can read the Blend and Base inputs of a MaskNode using the LAYER_BLEND_* and LAYER_BASE_* layer variables. See the MaskShader reference for the full list, or Writing MaskShaders for an example.
You can blend the individual material properties of both inputs and output the result using the LAYER_OUT_* layer variables.