diff options
author | Tomi Korpipää <tomi.korpipaa@qt.io> | 2019-04-25 11:30:07 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@qt.io> | 2019-04-25 09:05:04 +0000 |
commit | 67d0d060ac8c66c6dbb0b84c69b9e49faa87c7bd (patch) | |
tree | 5d4fd8a6176d9081e3c037888ccca238344e6760 /src/Runtime/res/effectlib/distancefieldtext_dropshadow_core.vert | |
parent | 58c8c69a51af8185b08ff34a1e3e5a3736460032 (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_dropshadow_core.vert')
-rw-r--r-- | src/Runtime/res/effectlib/distancefieldtext_dropshadow_core.vert | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Runtime/res/effectlib/distancefieldtext_dropshadow_core.vert b/src/Runtime/res/effectlib/distancefieldtext_dropshadow_core.vert index 51190577..3b1ba712 100644 --- a/src/Runtime/res/effectlib/distancefieldtext_dropshadow_core.vert +++ b/src/Runtime/res/effectlib/distancefieldtext_dropshadow_core.vert @@ -44,7 +44,7 @@ void main() float scale = fontScale * sqrt(abs(determinant(modelView))); alphas = alphaRange(scale); - vec2 textureSizeMultiplier = vec2(1.0 / textureWidth, 1.0 / textureHeight); + vec2 textureSizeMultiplier = vec2(1.0 / float(textureWidth), 1.0 / float(textureHeight)); sampleCoord = tCoord * textureSizeMultiplier; shadowSampleCoord = (tCoord - shadowOffset) * textureSizeMultiplier; |