Does anyone have any recommendations for tutorials or whatnot that show how to do projective texture mapping? I found one small example in a book that I own:
https://github.com/daw42/glslcookbook/blob/master/chapter04/sceneprojtex.cpp
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Does anyone have any recommendations for tutorials or whatnot that show how to do projective texture mapping? I found one small example in a book that I own:
https://github.com/daw42/glslcookbook/blob/master/chapter04/sceneprojtex.cpp
I got it to work, after struggling with layout issues. When it comes down to it, the only thing to set is the projector matrix.
The code given above is pretty easy to migrate into other projects.
Here I only apply the projected texture where the normal is like vec3(0, 1, 0). Looks better?