diff options
author | David Thompson <dthompson2@worcester.edu> | 2021-08-27 16:07:38 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2021-08-27 16:09:23 -0400 |
commit | 9b5d364add330fc18100491bf3c57316a27183f5 (patch) | |
tree | 7799b4b8ae3224a4bdd6e4ec82db796a12b4d5c7 /data/shaders/path-fill-frag.glsl | |
parent | 9b6c5e3ba42eace457ce96600fecd31109e976ab (diff) |
graphics: path: Separate fill/stroke into different shaders.
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; +} |