cameraPositionInt
uniform ivec3 cameraPositionInt;
This uniform stores the integer component (truncated value) of the position of the player camera. Unlike cameraPosition
, this value is not shifted and will exactly match the integer component of the player’s coordinates in first person view.