diff options
author | Sven Gothel <[email protected]> | 2008-08-12 12:32:32 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-08-12 12:32:32 +0000 |
commit | 65d46b634610cfb40f0ed25394bc0058b6ef420d (patch) | |
tree | 2b723fc9eb95748137a533c28e780cd5a547262a /src/classes/com/sun/opengl/impl | |
parent | 9517539e3b43d21017465180376329439bc25f12 (diff) |
GLWindow: Added perf logging; FBO: adjusted texture format; Fixed: ColorTexture fix for ES2
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1750 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl')
-rw-r--r-- | src/classes/com/sun/opengl/impl/glsl/shader/FixedFuncColorTexture.fp | 5 | ||||
-rwxr-xr-x | src/classes/com/sun/opengl/impl/glsl/shader/bin/nvidia/FixedFuncColorTexture.bfp | bin | 1804 -> 1804 bytes |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/classes/com/sun/opengl/impl/glsl/shader/FixedFuncColorTexture.fp b/src/classes/com/sun/opengl/impl/glsl/shader/FixedFuncColorTexture.fp index cc4bd0c64..804de9f64 100644 --- a/src/classes/com/sun/opengl/impl/glsl/shader/FixedFuncColorTexture.fp +++ b/src/classes/com/sun/opengl/impl/glsl/shader/FixedFuncColorTexture.fp @@ -31,8 +31,9 @@ vec4 getTexColor(in sampler2D tex, in int idx) { void main (void) { vec4 texColor = getTexColor(mgl_ActiveTexture,mgl_ActiveTextureIdx); - if(length(texColor)>0.0) { - gl_FragColor = vec4(frontColor.rgb*texColor.rgb, frontColor.a * texColor.a) ; + + if(length(texColor.rgb)>0.0) { + gl_FragColor = vec4(frontColor.rgb*texColor.rgb, frontColor.a) ; } else { gl_FragColor = frontColor; } diff --git a/src/classes/com/sun/opengl/impl/glsl/shader/bin/nvidia/FixedFuncColorTexture.bfp b/src/classes/com/sun/opengl/impl/glsl/shader/bin/nvidia/FixedFuncColorTexture.bfp Binary files differindex 375ea6293..b2dd5bab6 100755 --- a/src/classes/com/sun/opengl/impl/glsl/shader/bin/nvidia/FixedFuncColorTexture.bfp +++ b/src/classes/com/sun/opengl/impl/glsl/shader/bin/nvidia/FixedFuncColorTexture.bfp |