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.

Read in the manual

The Shade Vector Math node in Infinite, showing its inputs, controls and outputs.

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.

ControlRange or optionsDefault
opAdd, Subtract, Multiply, Divide, Multiply Add, Cross Product, Project, Reflect …0
aX-10 to 100
aY-10 to 100
aZ-10 to 100
bX-10 to 100
bY-10 to 100
bZ-10 to 100

More shader nodes