aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fabo@debian.org>2011-10-22 09:05:19 +0300
committerFathi Boudra <fabo@debian.org>2011-10-22 09:05:19 +0300
commitb7c9ab43568bef9e87de0303cc71cf0ac390fbff (patch)
tree02413486813c20ecf5e93a4b66ff7d5caf48a444
parent02a216d6ad5c47b9299323d6ba76c794058f360e (diff)
downloadirrlicht-gles-b7c9ab43568bef9e87de0303cc71cf0ac390fbff.tar.gz
better solution for the shader fix, instead of adding int precision everywhere (as it is not actually needed in the other shaders)
-rw-r--r--media/Shaders/COGLES2FixedPipeline.fsh3
-rw-r--r--media/Shaders/COGLES2FixedPipeline.vsh2
-rw-r--r--media/Shaders/COGLES2NormalMap.fsh1
-rw-r--r--media/Shaders/COGLES2ParallaxMap.fsh1
-rw-r--r--media/Shaders/COGLES2Renderer2D.fsh1
5 files changed, 2 insertions, 6 deletions
diff --git a/media/Shaders/COGLES2FixedPipeline.fsh b/media/Shaders/COGLES2FixedPipeline.fsh
index b1e0243..b18df98 100644
--- a/media/Shaders/COGLES2FixedPipeline.fsh
+++ b/media/Shaders/COGLES2FixedPipeline.fsh
@@ -18,7 +18,6 @@
#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);
@@ -33,7 +32,7 @@ varying float varClipDist;
/* Uniforms */
-uniform int uRenderMode;
+uniform mediump int uRenderMode;
uniform bool uAlphaTest;
uniform float uAlphaValue;
diff --git a/media/Shaders/COGLES2FixedPipeline.vsh b/media/Shaders/COGLES2FixedPipeline.vsh
index 42b4851..bc262c1 100644
--- a/media/Shaders/COGLES2FixedPipeline.vsh
+++ b/media/Shaders/COGLES2FixedPipeline.vsh
@@ -23,7 +23,7 @@ attribute vec4 inTexCoord0;
attribute vec4 inTexCoord1;
attribute vec3 inVertexNormal;
-uniform int uRenderMode;
+uniform mediump int uRenderMode;
/* Matrix Uniforms */
diff --git a/media/Shaders/COGLES2NormalMap.fsh b/media/Shaders/COGLES2NormalMap.fsh
index 33fd51d..ddc81ff 100644
--- a/media/Shaders/COGLES2NormalMap.fsh
+++ b/media/Shaders/COGLES2NormalMap.fsh
@@ -6,7 +6,6 @@
#define MAX_LIGHTS 2
precision mediump float;
-precision highp int;
uniform sampler2D texture0;
uniform sampler2D texture1;
diff --git a/media/Shaders/COGLES2ParallaxMap.fsh b/media/Shaders/COGLES2ParallaxMap.fsh
index 8ab5a9a..40294e3 100644
--- a/media/Shaders/COGLES2ParallaxMap.fsh
+++ b/media/Shaders/COGLES2ParallaxMap.fsh
@@ -6,7 +6,6 @@
#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 5ab6e93..11a1068 100644
--- a/media/Shaders/COGLES2Renderer2D.fsh
+++ b/media/Shaders/COGLES2Renderer2D.fsh
@@ -4,7 +4,6 @@
// 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;