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
+14
View File
@@ -0,0 +1,14 @@
#version 430 core
in vec4 vColor;
in vec3 vparams;
out vec4 fColor;
void main()
{
float d = (dot(vec2(vparams.xy),vec2(vparams.xy)));
if ( d > 1 || d < vparams.z ) {discard;}
//if ( d > 1 ) {discard;}
fColor = vColor;
//fColor = (10,0,0,10);
}