Shader node
Shade Vector Math
Per-component vector maths on A, B and C (each an X, Y, Z triple): add, subtract, multiply, divide, cross product, project, reflect, refract, faceforward, dot product, distance, length, scale, normalize, and the per-axis rounding and trig operations. Dot, Distance and Length come out as a grey value. Scale only appears for Scale and Refract. Everyday use: bend or reflect a direction, such as a mirror direction for a reflection lookup. Also called a vector calculator.

What it does
Shade Vector Math is a shader node: it works out how a surface looks, from light, normals and textures. It takes picture in and gives picture out.
Try it
Use Reflect on the view direction and the surface normal to get a mirror direction.
Shade GeometryShade Vector MathShade ImageMaterial
Inputs and outputs
Inputs
- picture a
- picture b
- picture c
Outputs
- picture out
Controls
Every control with a range can be driven by a modulator, a note, an audio level or a sketch.
| Control | Range or options | Default |
|---|---|---|
| op | Add, Subtract, Multiply, Divide, Multiply Add, Cross Product, Project, Reflect … | 0 |
| aX | -10 to 10 | 0 |
| aY | -10 to 10 | 0 |
| aZ | -10 to 10 | 0 |
| bX | -10 to 10 | 0 |
| bY | -10 to 10 | 0 |
| bZ | -10 to 10 | 0 |