world border: set finFragmentPosition

This commit is contained in:
Bixilon 2022-11-11 15:57:02 +01:00
parent 7fa78ade00
commit 7883de2123
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -43,6 +43,7 @@ void main() {
position.x += uCenter.x; position.x += uCenter.x;
position.z += uCenter.y; position.z += uCenter.y;
gl_Position = uViewProjectionMatrix * vec4(position, 1.0f); gl_Position = uViewProjectionMatrix * vec4(position, 1.0f);
finFragmentPosition = position;
finTextureIndex = uIndexLayer >> 28u; finTextureIndex = uIndexLayer >> 28u;
vec2 uv = CONST_UV[floatBitsToUint(uvIndex)]; vec2 uv = CONST_UV[floatBitsToUint(uvIndex)];