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
+15
View File
@@ -0,0 +1,15 @@
#version 430 core
layout (location = 0) in vec3 position;
layout (location = 1) in vec4 color;
layout (location = 2) in vec4 boxes;
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
out vec4 vColor;
out vec2 boxOut;
out vec2 boxIn;
void main()
{
gl_Position = theMat * vec4(position.xyz,1);
vColor = color;
boxOut = boxes.xy ;
boxIn = boxes.zw ;
}