Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#ActualYours3!f

Posted 17 May 2013 - 02:55 AM

Hi,

 

is there any way to prevent OGL to write the depth buffer from the fragment shader? I'm thinking of something like discard.

I'd like to throw away pixels whose alpha is not big enough. This would help me to perform early depth testing to reduce overdraw.

Node that this is a 2D engine, so all of this are basically sprites.

 

Best regards,

Yours3lf


#1Yours3!f

Posted 17 May 2013 - 02:52 AM

Hi,

 

is there any way to prevent OGL to write the depth buffer? I'm thinking of something like discard.

I'd like to throw away pixels whose alpha is not big enough. This would help me to perform early depth testing to reduce overdraw.

Node that this is a 2D engine, so all of this are basically sprites.

 

Best regards,

Yours3lf

 


PARTNERS