Skip to content

Components

ShaderMaterial

Draws this node's Sprite, or its Particle Emitter's particles, through a custom shader instead of plainly: a rippling puddle, a glow, a heat shimmer, sparks each in a colour of its own. With no shader chosen it draws unchanged.

On this page

Add it

+ Add node → Shader Material creates a node with it already on. Already have a node for it? Add component → ShaderMaterialComponent.

Fields

FieldScript nameKindDefaultWhat it does
ShadershaderassetnoneThe shader this node draws through.
ValuesvalueslistemptyThe values, by name.
FieldScript nameKindDefaultWhat it does
NamenametextnoneThe parameter's name, exactly as declared in the shader.
ValuevaluecolournoneFour numbers, whatever the parameter's kind.