summaryrefslogtreecommitdiff
path: root/data/shaders/path-fill-vert.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'data/shaders/path-fill-vert.glsl')
-rw-r--r--data/shaders/path-fill-vert.glsl13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/shaders/path-fill-vert.glsl b/data/shaders/path-fill-vert.glsl
index d66bb14..f8bcace 100644
--- a/data/shaders/path-fill-vert.glsl
+++ b/data/shaders/path-fill-vert.glsl
@@ -14,9 +14,22 @@ varying vec2 fragPosition;
out vec2 fragPosition;
#endif
+#ifdef GLSL120
uniform mat4 mvp;
uniform vec4 color;
uniform mat3 gradientMatrix;
+#else
+layout (std140) uniform Fill
+{
+ mat4 mvp;
+ vec4 color;
+ int mode;
+ vec4 endColor;
+ mat3 gradientMatrix;
+ vec2 gradientRange;
+ float radialGradientRatio;
+};
+#endif
void main(void) {
// Short-circuit because the fragments will just be discarded