diff options
Diffstat (limited to 'cwd/shaders/entity.fs')
-rw-r--r-- | cwd/shaders/entity.fs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cwd/shaders/entity.fs b/cwd/shaders/entity.fs new file mode 100644 index 0000000..6935d1b --- /dev/null +++ b/cwd/shaders/entity.fs @@ -0,0 +1,9 @@ +#version 330 core + +uniform vec3 color; +in vec2 uvPos; + +void main(){ + if (uvPos.x < 0.9 && uvPos.x > 0.1 && uvPos.y < 0.9 && uvPos.y > 0.1) discard; + gl_FragColor = vec4(color,1); +}
\ No newline at end of file |