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
in vec4 gPos;
in vec2 gBoundingBox;
out vec4 fColor;
void main()
{
float d = dot(gBoundingBox,gBoundingBox);
if ( d > 1) { discard; }
fColor = gPos;
}