The Book of Shaders by Patricio Gonzalez Vivo


Float

Floating-point variable type

Declaration

float aFloat = 1.0;
float bFloat = float(aBool);
float cFloat = float(aInt);

Description

float is used for floating point values.

See Also

void, bool, int, float, bvec2, bvec3, bvec4, struct