Reorganise shaders

This commit is contained in:
2021-03-21 12:50:27 +01:00
parent a8ebf2f7f1
commit cf5a8b3e1b
32 changed files with 22 additions and 60 deletions
+18
View File
@@ -0,0 +1,18 @@
#version 430 core
layout (location = 0) in vec3 pos;
layout (location = 1) in vec4 params;
out vec4 vParams;
uniform mat4 worldMat;
mat4 perspective =
mat4 (1,0,0,0
,0,1,0,0
,0,0,1,1
,0,0,0,1
) ;
void main()
{
gl_Position = perspective * worldMat * vec4(pos.xyz, 1);
vParams = params;
}