aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fabo@debian.org>2011-10-21 22:10:28 +0300
committerFathi Boudra <fabo@debian.org>2011-10-21 22:10:28 +0300
commit211f241ffba6d3f8d85898fd15ba899820504b13 (patch)
tree1c764d9ea120bf1a88bdde8d1f518a19bd24732c
parentbfe04a829c6f877865abce6aaae7caa2ef039765 (diff)
downloadirrlicht-gles-211f241ffba6d3f8d85898fd15ba899820504b13.tar.gz
fix fragment shaders. Thanks to Alexandros.
-rw-r--r--media/Shaders/COGLES2FixedPipeline.fsh2
-rw-r--r--media/Shaders/COGLES2NormalMap.fsh3
-rw-r--r--media/Shaders/COGLES2ParallaxMap.fsh1
-rw-r--r--media/Shaders/COGLES2Renderer2D.fsh1
4 files changed, 5 insertions, 2 deletions
diff --git a/media/Shaders/COGLES2FixedPipeline.fsh b/media/Shaders/COGLES2FixedPipeline.fsh
index 5475b78..b1e0243 100644
--- a/media/Shaders/COGLES2FixedPipeline.fsh
+++ b/media/Shaders/COGLES2FixedPipeline.fsh
@@ -18,12 +18,12 @@
#define TransparentVertexAlpha 15
precision mediump float;
+precision highp int;
vec4 red = vec4(1.0, 0.0, 0.0, 1.0);
vec4 green = vec4(0.0, 1.0, 0.0, 1.0);
vec4 blue = vec4(0.0, 0.0, 1.0, 1.0);
-
/* Varyings */
varying vec4 varTexCoord[MAX_TEXTURE_UNITS];
diff --git a/media/Shaders/COGLES2NormalMap.fsh b/media/Shaders/COGLES2NormalMap.fsh
index 5b2374a..33fd51d 100644
--- a/media/Shaders/COGLES2NormalMap.fsh
+++ b/media/Shaders/COGLES2NormalMap.fsh
@@ -6,6 +6,7 @@
#define MAX_LIGHTS 2
precision mediump float;
+precision highp int;
uniform sampler2D texture0;
uniform sampler2D texture1;
@@ -33,4 +34,4 @@ void main(void)
color.a = varLightColor[0].a;
gl_FragColor = color;
-} \ No newline at end of file
+}
diff --git a/media/Shaders/COGLES2ParallaxMap.fsh b/media/Shaders/COGLES2ParallaxMap.fsh
index 40294e3..8ab5a9a 100644
--- a/media/Shaders/COGLES2ParallaxMap.fsh
+++ b/media/Shaders/COGLES2ParallaxMap.fsh
@@ -6,6 +6,7 @@
#define MAX_LIGHTS 2
precision mediump float;
+precision highp int;
uniform sampler2D texture0;
uniform sampler2D texture1;
diff --git a/media/Shaders/COGLES2Renderer2D.fsh b/media/Shaders/COGLES2Renderer2D.fsh
index 11a1068..5ab6e93 100644
--- a/media/Shaders/COGLES2Renderer2D.fsh
+++ b/media/Shaders/COGLES2Renderer2D.fsh
@@ -4,6 +4,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in Irrlicht.h
precision mediump float;
+precision highp int;
uniform bool uUseTexture;
uniform sampler2D uTextureUnit;