Skip to main content
gamedev.net
🔒 Locked

Stencil buffer (Open GL)

Started by Spark Oct 6, 2000 at 3:01 PM 1 replies 550+ views
Original Post
Spark
Spark
Hi, I don''t manage to draw anything onto the stencil buffer without having it displayed on screen. (doing some shadow volumes) So my question is - how do I draw anything to the stencil buffer without drawing it in the frame buffer as well? Anyone?
Serge K
Serge K
Try this:
glColorMask(GL_FALSE,GL_FALSE,GL_FALSE,GL_FALSE);
Spark
Spark
Works great!

thanks...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.