PDA

View Full Version : Front and Backface different texture



mokafolio
05-25-2009, 05:33 AM
Hi,

Google could unfortunatelly not help me on that. Is it possible to use a different texture for the front and backFace of a quad for example?
I guess so, but how?

Thanks

todayman
06-06-2009, 07:18 PM
I don't know if there is a built-in function for this, but it should be easy enough to do in a shader.

dletozeun
06-07-2009, 05:51 AM
If you do not want to use shaders, enable culling then for the 1st pass draw geometry in GL_FRONT culling mode binding the right texture and for the 2nd pass draw once again geometry but with GL_BACK culling mode and binding another texture.