From 9f59125e322b80f62b791ae9af3ee6405307cbde Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 31 Jul 2011 20:41:49 +0200 Subject: ruler.fp: Use es2 precision for all variables, otherwise es2 glsl compiler fails --- .../jogamp/opengl/test/junit/jogl/demos/es2/shader/ruler.fp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/ruler.fp b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/ruler.fp index f643ea104..b2f4d7a6a 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/ruler.fp +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/ruler.fp @@ -10,17 +10,17 @@ #define LOWP #endif -uniform HIGHP vec3 gcu_RulerColor; -uniform HIGHP vec2 gcu_RulerPixFreq; +uniform MEDIUMP vec3 gcu_RulerColor; +uniform MEDIUMP vec2 gcu_RulerPixFreq; -const vec2 onev2 = vec2(1.0, 1.0); +const MEDIUMP vec2 onev2 = vec2(1.0, 1.0); void main (void) { - vec2 c = step( onev2, mod(gl_FragCoord.xy, gcu_RulerPixFreq) ); + MEDIUMP vec2 c = step( onev2, mod(gl_FragCoord.xy, gcu_RulerPixFreq) ); if( c.s == 0.0 || c.t == 0.0 ) { gl_FragColor = vec4(gcu_RulerColor, 1.0); } else { discard; } -} \ No newline at end of file +} -- cgit v1.2.3