diff options
author | Sven Gothel <[email protected]> | 2011-09-28 17:14:31 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-28 17:14:31 +0200 |
commit | f4730179a4436dff7282bc42bc6aa58fb5fb63b5 (patch) | |
tree | 13fb70dee2c10ff5e3fea13447d1f7657ed5b5c9 /src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01-xxx.fp | |
parent | 09fd89250066642d05d84699beaacb0c73bcc408 (diff) |
Fix ES2 shaders
Add missing floating point precision qualifiers.
'#extension OES_standard_derivatives : require' somehow doesn't pass the GLSL compiler,
however '#extension GL_OES_standard_derivatives : enable' does.
Currently works on ARM's Mali-400 MP, NV Tegra still don't show a picture.
TODO: More in depth evaluation.
Diffstat (limited to 'src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01-xxx.fp')
-rw-r--r-- | src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01-xxx.fp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01-xxx.fp b/src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01-xxx.fp index 300164466..52cff807c 100644 --- a/src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01-xxx.fp +++ b/src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01-xxx.fp @@ -27,7 +27,7 @@ void main (void) // size = 1.0/textureSize(gcu_TextureUnit,0); //#endif rtex -= 5.0; - vec4 t = texture2D(gcu_TextureUnit, rtex)* 0.18; + GRAPHP vec4 t = texture2D(gcu_TextureUnit, rtex)* 0.18; t += texture2D(gcu_TextureUnit, rtex + size*(vec2(1, 0)))*tex_weights.x; t += texture2D(gcu_TextureUnit, rtex - size*(vec2(1, 0)))*tex_weights.x; |