summaryrefslogtreecommitdiffstats
path: root/src/runtime/shaders/distancefieldtext_dropshadow.vert
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/shaders/distancefieldtext_dropshadow.vert')
-rw-r--r--src/runtime/shaders/distancefieldtext_dropshadow.vert4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/shaders/distancefieldtext_dropshadow.vert b/src/runtime/shaders/distancefieldtext_dropshadow.vert
index 69fd211..65e8e00 100644
--- a/src/runtime/shaders/distancefieldtext_dropshadow.vert
+++ b/src/runtime/shaders/distancefieldtext_dropshadow.vert
@@ -34,7 +34,7 @@ highp vec2 alphaRange(highp float scale)
highp float range = spreadFunc(scale);
highp float alphaMin = max(0.0, base - range);
highp float alphaMax = min(base + range, 1.0);
- return highp vec2(alphaMin, alphaMax);
+ return vec2(alphaMin, alphaMax);
}
highp float determinantOfSubmatrix(highp mat4 m, int col0, int col1, int row0, int row1)
@@ -64,7 +64,7 @@ void main()
highp float scale = fontScale * sqrt(abs(determinant(modelView)));
alphas = alphaRange(scale);
- highp vec2 textureSizeMultiplier = highp vec2(1.0 / highp float(textureWidth), 1.0 / highp float(textureHeight));
+ highp vec2 textureSizeMultiplier = vec2(1.0 / highp float(textureWidth), 1.0 / float(textureHeight));
sampleCoord = tCoord * textureSizeMultiplier;
shadowSampleCoord = (tCoord - shadowOffset) * textureSizeMultiplier;