Shadow multitexture

There is a shadow mapping in this tutorial: http://www.paulsprojects.net/tutorials/smt/smt.html

Good, but I didn’t understand how to create a multitexture scene.

If in the third pass of shadow matching it is necessary to link the texture of the shadows, the projected texture to perform a depth comparison, HOW can I snap other textures if I need to connect the texture of the shadow display?

Should I set the shadow display as a separate texture for snapping? Something like that:

  • Active shadow texture
  • Active texture 1
  • Active texture 2

I tried this, but it did not work (maybe I did something wrong).

+3
source share
2

, , shadowmap?

, (, , , OpenGL 1.4/1.5 , GL_MAX_TEXTURE_UNITS_ARB glGetIntegerv()). , /.

+1

, . / .

0

Source: https://habr.com/ru/post/1706434/


All Articles