summaryrefslogtreecommitdiffstats
path: root/src/Runtime/res
diff options
context:
space:
mode:
Diffstat (limited to 'src/Runtime/res')
-rw-r--r--src/Runtime/res/effectlib/distancefieldtext_core.vert2
-rw-r--r--src/Runtime/res/effectlib/distancefieldtext_dropshadow_core.vert2
2 files changed, 2 insertions, 2 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);
}
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;