chunkOffset
uniform vec3 chunkOffset;
The chunk offset in model space for the currently rendering chunk of terrain. Used in combination with vaPosition
to get the model space position as follows:
vec3 model_pos = vaPosition + chunkOffset;
The value of chunkOffset
is all 0s when not rendering terrain, or when using the compatibility profile.