diff options
Diffstat (limited to 'data/shaders/path-fill-frag.glsl')
-rw-r--r-- | data/shaders/path-fill-frag.glsl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/data/shaders/path-fill-frag.glsl b/data/shaders/path-fill-frag.glsl new file mode 100644 index 0000000..3af191f --- /dev/null +++ b/data/shaders/path-fill-frag.glsl @@ -0,0 +1,17 @@ +// -*- mode: c -*- + +#ifdef GLSL330 +out vec4 fragColor; +#else +#define fragColor gl_FragColor +#endif + +uniform vec4 color; + +void main(void) { + if (color.a <= 0.0) { + discard; + } + + fragColor = color; +} |