add
add
A fundamental math node that adds two or more input values (such as colors, vectors, or floats). It is a cornerstone for building complex shader effects.
Core Advantages
Its core advantage is its versatility and fundamental nature. It provides the most direct way to blend colors, accumulate lighting, offset coordinates, and combine effects, making it the most basic tool for implementing the concept of 'layering' in shaders.
Common Uses
Blending Light & Color
Implementing Texture Scrolling/Panning
Procedural Vertex Displacement
Layering Procedural Noise
How to adjust
This node has no configurable properties. Its output is entirely determined by the input nodes connected to it (e.g., colors, vectors, time). The final effect is adjusted by changing these input values.
Code Examples
1// Sum multiple lighting components for the final color
2const finalColor = add( ambientLight, diffuseLight, specularLight );