glTexParameterf(texture_target, GL_TEXTURE_COMPARE_MODE_ARB, GL_COMPARE_R_TO_TEXTURE_ARB);
glTexParameterf(texture_target, GL_TEXTURE_COMPARE_FUNC_ARB, GL_LEQUAL);
FBO and depthmap
Is it correct or even needed to use these function when setting up a depthmap in a FBO?
As of now I have tried both ways and neither makes a difference?
Thanks
Those two lines is used when shadowing (when you already have the depth-texture) and tells the hardware to do the computations for you.
When you are "setting up" a depthmap, it shouldn't make any difference.
Go to http://oss.sgi.com/projects/ogl-sample/registry/ and read about the extensions if you arn't sure how they work...
Btw.. what are you trying to do? :) Reading a tutorial on shadowmapping might help. ^_^
Good luck!
When you are "setting up" a depthmap, it shouldn't make any difference.
Go to http://oss.sgi.com/projects/ogl-sample/registry/ and read about the extensions if you arn't sure how they work...
Btw.. what are you trying to do? :) Reading a tutorial on shadowmapping might help. ^_^
Good luck!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement