OpenGL Distance Optimizations

Posts: 3,591
Joined: 2003.06
Post: #16
Well, but did you figure out how to set your depth testing precision in SDL?

When you're setting up SDL, try:

SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
Quote this message in a reply
Posts: 40
Joined: 2008.10
Post: #17
That seems to work. I don't really notice a difference in the rendering though. What exactly is the change in depth buffer precision supposed to do?
Quote this message in a reply
Posts: 1,234
Joined: 2002.10
Post: #18
Learn about depth buffer precision.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Signed Distance Fields for Alpha Tested Magnification of Vector Textures maximile 2 8,659 Mar 29, 2010 10:59 AM
Last Post: Skorche
  Point distance attenuation with OGL-extension - how? mcMike 6 8,305 May 21, 2008 10:58 PM
Last Post: mcMike