Add shaders that will just return positional information

This commit is contained in:
2021-08-31 18:32:50 +01:00
parent f58530cbb1
commit 146bab6fe3
18 changed files with 336 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
#version 430 core
layout (location = 0) in vec4 position;
layout (location = 1) in vec4 color;
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
out vec4 vColor;
void main()
{
vec4 posxy = theMat * vec4(position.xyz,1);
vec4 posz = theMat * vec4(position.xyw,1);
gl_Position = vec4(posxy.xy,posz.z,1);
vColor = color;
}