diff options
Diffstat (limited to 'src/runtime/shaders/distancefieldtext.vert')
-rw-r--r-- | src/runtime/shaders/distancefieldtext.vert | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/shaders/distancefieldtext.vert b/src/runtime/shaders/distancefieldtext.vert index 879545f..7a111bc 100644 --- a/src/runtime/shaders/distancefieldtext.vert +++ b/src/runtime/shaders/distancefieldtext.vert @@ -30,7 +30,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) @@ -59,6 +59,6 @@ void main() { highp float scale = fontScale * sqrt(abs(determinant(modelView))); alphas = alphaRange(scale); - sampleCoord = tCoord * highp vec2(1.0 / highp float(textureWidth), 1.0 / highp float(textureHeight)); + sampleCoord = tCoord * vec2(1.0 / float(textureWidth), 1.0 / float(textureHeight)); gl_Position = mvp * vCoord; } |