The Book of Shaders by Patricio Gonzalez Vivo


Int

Integer data type

Declaration

int aInt = 42;
int bInt = int(aBool);
int cInt = int(aFloat);

Description

int is used for integer values.

See Also

void, bool, int, float, ivec2, ivec3, ivec4