summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/shadow-map-qml
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-04-22 15:34:26 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-04-22 13:49:03 +0000
commit543454fb34c3cf9effc194c3a0fb1145ac25ed11 (patch)
treeb1c614ca8da8565262fcba193bc4810ab876e43d /examples/qt3d/shadow-map-qml
parentf03dc3a2599a0f05cded8b984489b89113c7f037 (diff)
Add precision for sampler2DShadow in ES3 shader
As per GLSL ES 3.0 spec there is no default precision for this type, similarly to float. Therefore some drivers (f.ex. newer Mali ones) reject the shader without specifying the precision. Change-Id: Ib5e9a2d47924da84d6a74dde0b9e894fc4b580e4 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/qt3d/shadow-map-qml')
-rw-r--r--examples/qt3d/shadow-map-qml/shaders/es3/ads.frag2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qt3d/shadow-map-qml/shaders/es3/ads.frag b/examples/qt3d/shadow-map-qml/shaders/es3/ads.frag
index 2074f0274..8a59268ac 100644
--- a/examples/qt3d/shadow-map-qml/shaders/es3/ads.frag
+++ b/examples/qt3d/shadow-map-qml/shaders/es3/ads.frag
@@ -12,7 +12,7 @@ uniform vec3 kd; // Diffuse reflectivity
uniform vec3 ks; // Specular reflectivity
uniform float shininess; // Specular shininess factor
-uniform sampler2DShadow shadowMapTexture;
+uniform highp sampler2DShadow shadowMapTexture;
in vec4 positionInLightSpace;