diff options
author | Sven Gothel <[email protected]> | 2011-07-31 20:41:49 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-31 20:41:49 +0200 |
commit | 9f59125e322b80f62b791ae9af3ee6405307cbde (patch) | |
tree | 90d9cac0c6ef41b8f38b2bae103aa4b474427be0 /src/test/com/jogamp/opengl | |
parent | 99df2204c92eb06b37fba6ff75aa6b7f5e803502 (diff) |
ruler.fp: Use es2 precision for all variables, otherwise es2 glsl compiler fails
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/ruler.fp | 10 |
1 files 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 +} |