UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials

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].

1000
0100
0010
0001

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].

1111
1111
1111
0001

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].

0000
0000
0000
0001

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:

1000
0100
0010
0001

mat4 mat4_one

Description

A 4×4 matrix of float values filled with ones:

1111
1111
1111
1111

mat4 mat4_zero

Description

A 4×4 matrix of float values filled with zeroes:

0000
0000
0000
0000

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: 2017-07-03