Updated shader source to set precision explicitly
[platform/core/uifw/dali-toolkit.git] / optional / dali-toolkit / public-api / shader-effects / distance-field-effect.cpp
index 5c37f36..6c120b2 100644 (file)
@@ -112,7 +112,7 @@ DistanceFieldEffect DistanceFieldEffect::New()
       "\n"
       "  else // (uDoShadow > 0.0)\n"
       "  {\n"
-      "    float shadowDistance = texture2D(sTexture, vTexCoord - uShadowOffset).a;\n"
+      "    mediump float shadowDistance = texture2D(sTexture, vTexCoord - uShadowOffset).a;\n"
       "    mediump float inText = alphaFactor;\n"
       "    mediump float inShadow = smoothstep(uSmoothing - smoothWidth, uSmoothing + smoothWidth, shadowDistance);\n"
       "\n"