fix: OpenGL sphere test - correct perspective matrix, depth test, texture flip, and screenshot path

This commit is contained in:
2026-03-23 01:42:48 +08:00
parent f427699ac6
commit 537808c64d
2 changed files with 55 additions and 14 deletions

View File

@@ -11,7 +11,8 @@ uniform mat4 gProjectionMatrix;
void main() {
vec4 positionWS = gModelMatrix * aPosition;
positionWS.x = -positionWS.x;
vec4 positionVS = gViewMatrix * positionWS;
gl_Position = gProjectionMatrix * positionVS;
vTexcoord = aTexcoord;
vTexcoord = vec2(aTexcoord.x, 1.0 - aTexcoord.y);
}