Archived

This topic is now archived and is closed to further replies.

Lyve

Depth Test for Points

Recommended Posts

Hello members, does anyone know if it is possible to disable the depth test for points for every pixel to save time? Actually I''m rendering points with a point size > 1 and the depth test isn''t done for every point (one operation for each point), it is done for every pixel (e.g. 16 operations for a point size of 4). Many thanks for help Lyve

Share this post


Link to post
Share on other sites
I am not sure what exactly you mean but, you can use glDisable(GL_DEPTH_TEST) to turn it off. Use that before the code that draws the things that you want drawn without the depth test. Then after that, use the glEnable(GL_DEPTH_TEST) to turn it back on.

Share this post


Link to post
Share on other sites