diff options
Diffstat (limited to 'data/shaders/path-fill-frag.glsl')
-rw-r--r-- | data/shaders/path-fill-frag.glsl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/data/shaders/path-fill-frag.glsl b/data/shaders/path-fill-frag.glsl index e839318..3e10bf0 100644 --- a/data/shaders/path-fill-frag.glsl +++ b/data/shaders/path-fill-frag.glsl @@ -12,11 +12,25 @@ varying vec2 fragPosition; in vec2 fragPosition; #endif +#ifdef GLSL120 uniform int mode; uniform vec4 color; uniform vec4 endColor; +uniform mat3 gradientMatrix; uniform vec2 gradientRange; uniform float radialGradientRatio; +#else +layout (std140) uniform Fill +{ + mat4 mvp; + vec4 color; + int mode; + vec4 endColor; + mat3 gradientMatrix; + vec2 gradientRange; + float radialGradientRatio; +}; +#endif vec4 gradientMix(float x) { float start = gradientRange.x; |