About the stencil test?
Recently , I am learning NEHE''s OpenGL tutorials.In lesson 27,
the tutorial tells me to use the stencil test to case shadow on
the object.I look in MSDN Libaray,but I just can''t find out how
stencil test operates.So can anyone tell me more about it?
Many thanks!
georgeou
Hey!Please give some hints.I just couldn''t sleep without get this problem illuminated.Please!Thank you very much!
georgeou
You controll the stencil buffer with the function
glStencilMask(), glStencilOp() and glStencilFunc()
Take a look at http://biology.ncsa.uiuc.edu/cgi-bin/infosrch.cgi?cmd=getdoc&coll=0650&db=bks&fname=/SGI_Developer/OpenGL_RM/6302 for more information.
--------------------------------------------------------
"If it looks good, it is good computer graphics"
"If it looks like computer graphics, it is bad computer graphics"
Corrail
corrail@gmx.at
ICQ#59184081
glStencilMask(), glStencilOp() and glStencilFunc()
Take a look at http://biology.ncsa.uiuc.edu/cgi-bin/infosrch.cgi?cmd=getdoc&coll=0650&db=bks&fname=/SGI_Developer/OpenGL_RM/6302 for more information.
--------------------------------------------------------
"If it looks good, it is good computer graphics"
"If it looks like computer graphics, it is bad computer graphics"
Corrail
corrail@gmx.at
ICQ#59184081
--------------------------------------------------------There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.There is another theory which states that this has already happened...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement