filename | src/pvr2/shaders.glsl |
changeset | 1252:2fb29172ee79 |
prev | 1250:204dae47ab7a |
author | nkeynes |
date | Tue Mar 20 08:29:38 2012 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | More android WIP - Implement onPause/onResume (although resume is not actually working yet) - Implement BGRA => RGBA texture conversion (BGRA doesn't seem to work on the TFP) Boot swirl is now displayed, albeit depth buffering seems to be broken. |
file | annotate | diff | log | raw |
1.1 --- a/src/pvr2/shaders.glsl Sat Mar 03 16:08:48 2012 +10001.2 +++ b/src/pvr2/shaders.glsl Tue Mar 20 08:29:38 2012 +10001.3 @@ -86,7 +86,9 @@1.4 }1.6 #fragment DEFAULT_FRAGMENT_SHADER1.7 +#ifdef HAVE_GLES21.8 precision mediump float;1.9 +#endif1.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.16 #fragment BASIC_FRAGMENT_SHADER1.17 +#ifdef HAVE_GLES21.18 precision mediump float;1.19 +#endif1.20 +1.21 uniform sampler2D primary_texture;1.22 varying vec4 frag_colour;1.23 varying vec2 frag_texcoord;
.