Tweak picture shader verxs

This commit is contained in:
2025-11-20 17:02:05 +00:00
parent cb64be4eeb
commit d0aef5cf39
7 changed files with 72 additions and 83 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
#version 450 core
layout (location = 0) in vec3 pos;
layout (location = 0) in vec4 pos;
layout (location = 1) in vec4 col;
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
out vec4 vCol;
out vec3 vPos;
void main() {
gl_Position = theMat * vec4(pos,1);
gl_Position = theMat * pos;
vCol = col;
vPos = pos;
vPos = pos.xyz;
}