Hello,
I’ve got a shadow map working on some objects and they successfully cast shadows on each other. However, when I try to add image textures to the objects the images seem to override the shadow textures. For example, I initially call:
<code>
glBindTexture(GL_TEXTURE_2D, shadow_map_texture);
</code>
but when I call:
<code>
glBindTexture(GL_TEXTURE_2D,image_texture);
</code>
the shadows disappear. I am new to shadow mapping. Any ideas would help. Thanks!