Vector - Scalar

 
 
 

Category: Processing > Math

Shader Family: Texture

Output: Scalar

Performs a mathematical vector operation resulting in a scalar parameter.

Name

The shader's name. Enter any name you like, or leave the default.

Operation

Defines the mathematical operation:

Length of V1: Defines the length of the vector.

Dot Product of V1 and V2: Defines the angle between two vectors.

Distance between V1 and V2: Defines the distance between the V1 end point and the V2 end point.

Vector input 1

Defines the vector (1) used in all of the mathematical operations.

Vector input 2

Defines the vector (2) used in all of the mathematical operations.

Render Tree Usage

Connect one or two vector-output shaders (bumpmap generator, Texture Space Controllers) to the Input parameters. Once an operation is selected, the output can be used on any shader that accepts a scalar input.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License