View Full Version : zbuffer writing without rendering
adrien
05-10-2005, 04:17 AM
hello,
i'd like to write a geometry in the zbuffer without rendering it on the screen, but can't find how to do that.
any idea ?
regards
Adrien
Relic
05-10-2005, 04:21 AM
Not an advanced question, you know. ;)
glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
adrien
05-10-2005, 04:26 AM
sorry for that, and thanks for the answer ;-)
bChambers
05-10-2005, 12:16 PM
Don't forget to finish with
glColormask( GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE );
:) :) :)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.