Variables
The following pre-defined variables are available.
dmat4 dmat4_identity
Description
4×4 identity matrix of double values. The last row of this matrix is always [0 0 0 1].1 | 0 | 0 | 0 |
0 | 1 | 0 | 0 |
0 | 0 | 1 | 0 |
0 | 0 | 0 | 1 |
dmat4 dmat4_one
Description
A 4×4 matrix of double values filled with ones. The last row of this matrix is always [0 0 0 1].1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 |
0 | 0 | 0 | 1 |
dmat4 dmat4_zero
Description
A 4×4 matrix of double values filled with zeroes. The last row of this matrix is always [0 0 0 1].0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 |
0 | 0 | 0 | 1 |
dvec3 dvec3_epsilon
Description
A vector of three double values filled with 1E-6:0.000001 0.000001 0.000001
dvec3 dvec3_infinity
Description
A vector of three double values filled with 1E+9:100000000 100000000 100000000
dvec3 dvec3_one
Description
A vector of three double values filled with ones:1 1 1
dvec3 dvec3_zero
Description
A vector of three double values filled with zeroes:0 0 0
dvec4 dvec4_epsilon
Description
A vector of four double values filled with 1E-6:0.000001 0.000001 0.000001 0.000001
dvec4 dvec4_infinity
Description
A vector of four double values filled with 1E+9:100000000 100000000 100000000 100000000
dvec4 dvec4_one
Description
A vector of four double values filled with ones:1 1 1 1
dvec4 dvec4_zero
Description
A vector of four double values filled with zeroes:0 0 0 0
ivec3 ivec3_one
Description
A vector of three integer values filled with ones:1 1 1
ivec3 ivec3_zero
Description
A vector of three integer values filled with zeroes:0 0 0
ivec4 ivec4_one
Description
A vector of four integer values filled with ones:1 1 1 1
ivec4 ivec4_zero
Description
A vector of four integer values filled with zeroes:0 0 0 0
mat4 mat4_identity
Description
4×4 identity matrix of float values:1 | 0 | 0 | 0 |
0 | 1 | 0 | 0 |
0 | 0 | 1 | 0 |
0 | 0 | 0 | 1 |
mat4 mat4_one
Description
A 4×4 matrix of float values filled with ones:1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 |
mat4 mat4_zero
Description
A 4×4 matrix of float values filled with zeroes:0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 |
quat quat_identity
Description
An identity quaternion:0 0 0 1
vec3 vec3_epsilon
Description
A vector of three float values filled with 1E-6:0.000001 0.000001 0.000001
vec3 vec3_infinity
Description
A vector of three float values filled with 1E+9:100000000 100000000 100000000
vec3 vec3_one
Description
A vector of three float values filled with ones:1 1 1
vec3 vec3_zero
Description
A vector of three float values filled with zeroes:0 0 0
vec4 vec4_epsilon
Description
A vector of four float values filled with 1E-6:0.000001 0.000001 0.000001 0.000001
vec4 vec4_infinity
Description
A vector of four float values filled with 1E+9:100000000 100000000 100000000 100000000
vec4 vec4_one
Description
A vector of four float values filled with ones:1 1 1 1
vec4 vec4_zero
Description
A vector of four float values filled with zeroes:0 0 0 0
Last update: 03.07.2017
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter