summaryrefslogtreecommitdiffstats
path: root/src/Runtime/res/effectlib/distancefieldtext_core.vert
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@qt.io>2019-04-25 11:30:07 +0300
committerTomi Korpipää <tomi.korpipaa@qt.io>2019-04-25 09:05:04 +0000
commit67d0d060ac8c66c6dbb0b84c69b9e49faa87c7bd (patch)
tree5d4fd8a6176d9081e3c037888ccca238344e6760 /src/Runtime/res/effectlib/distancefieldtext_core.vert
parent58c8c69a51af8185b08ff34a1e3e5a3736460032 (diff)
Fix distance field shaders for ES3.2
Task-number: QT3DS-3352 Change-Id: Ic0d2e7910079a6c263f6e59b81ef0588a6455654 Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io> Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Diffstat (limited to 'src/Runtime/res/effectlib/distancefieldtext_core.vert')
-rw-r--r--src/Runtime/res/effectlib/distancefieldtext_core.vert2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Runtime/res/effectlib/distancefieldtext_core.vert b/src/Runtime/res/effectlib/distancefieldtext_core.vert
index 074a73ac..1ced295c 100644
--- a/src/Runtime/res/effectlib/distancefieldtext_core.vert
+++ b/src/Runtime/res/effectlib/distancefieldtext_core.vert
@@ -39,6 +39,6 @@ void main()
{
float scale = fontScale * sqrt(abs(determinant(modelView)));
alphas = alphaRange(scale);
- sampleCoord = tCoord * vec2(1.0 / textureWidth, 1.0 / textureHeight);
+ sampleCoord = tCoord * vec2(1.0 / float(textureWidth), 1.0 / float(textureHeight));
gl_Position = mvp * vec4(vCoord, 1.0);
}