Search
lxdream.org :: lxdream/src/pvr2/shaders.glsl :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/shaders.glsl
changeset 1252:2fb29172ee79
prev1250:204dae47ab7a
author nkeynes
date Sat Mar 03 16:16:57 2012 +1000 (9 years ago)
permissions -rw-r--r--
last change Include precision spec for GLES only
file annotate diff log raw
1.1 --- a/src/pvr2/shaders.glsl Sat Mar 03 16:08:48 2012 +1000
1.2 +++ b/src/pvr2/shaders.glsl Sat Mar 03 16:16:57 2012 +1000
1.3 @@ -86,7 +86,9 @@
1.4 }
1.5
1.6 #fragment DEFAULT_FRAGMENT_SHADER
1.7 +#ifdef HAVE_GLES2
1.8 precision mediump float;
1.9 +#endif
1.10 uniform float alpha_ref;
1.11 uniform sampler2D primary_texture;
1.12 uniform sampler2D palette_texture;
1.13 @@ -148,7 +150,10 @@
1.14 }
1.15
1.16 #fragment BASIC_FRAGMENT_SHADER
1.17 +#ifdef HAVE_GLES2
1.18 precision mediump float;
1.19 +#endif
1.20 +
1.21 uniform sampler2D primary_texture;
1.22 varying vec4 frag_colour;
1.23 varying vec2 frag_texcoord;
.