Add uniform buffer window coordinate matrix

This commit is contained in:
jgk
2021-06-24 17:17:30 +02:00
parent 9c94ec93bd
commit 93936346f7
3 changed files with 63 additions and 57 deletions
+1 -2
View File
@@ -2,8 +2,7 @@
layout (location = 0) in vec3 position;
layout (location = 1) in vec4 color;
layout (std140, binding = 0) uniform TheMat
{ mat4 theMat; } ;
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
out vec4 vColor;
uniform mat4 worldMat;