Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 06 Sep 2012
Offline Last Active Sep 28 2012 04:12 AM

Posts I've Made

In Topic: 2D Lighting - texture problem

07 September 2012 - 07:18 PM

It is working now. I forgot to enable writing to the depth buffer while clean it. And I had to enable GL_ALPHA_TEST to get the transparency of the textures while filling the depth buffer.

gl.glEnable ( GL2.GL_ALPHA_TEST ) ;
gl.glAlphaFunc ( GL.GL_GREATER, 0.1f) ;