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
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?