Java OpenGL color material darkens when depth test is disabled

Posted by Jeff Storey on Stack Overflow See other posts from Stack Overflow or by Jeff Storey
Published on 2010-03-26T01:32:51Z Indexed on 2010/03/26 16:23 UTC
Read the original article Hit count: 614

Filed under:
|
|
|
|

I've been working with the depth buffer in OpenGL (JOGL) to ensure certain items are rendered in front of others by disabling the depth buffer (detailed in my previous question http://stackoverflow.com/questions/2516086/java-opengl-saving-depth-buffer).

This works, except when I set the color of an item that is being drawn when the depth test is disabled, none of the material shininess shows up. The item is rendered as a darker version of the original color (it seems like there is no lighting effect really applied to it). Is there a reason why this would be happening? and how might I prevent this?

thanks, Jeff

© Stack Overflow or respective owner

Related posts about java

Related posts about opengl