shadows with textures

Hi,
its me again!
I tried to setup a simple shadow. I used the code from this tutorial: http://fabiensanglard.net/shadowmapping/index.php
Well, its working good (not the best shadow creation but its ok for me) but I am not able to use textures.
I tried it with multitexturing, since the shadow map is a TEXTURE_2D but it doesnt work.
All I got is this:

(yes, there also should be a skybox)

Does anyone know how to solve this?
Or, also a better/other shadow tutorial would also be useful, especially if i can use textures with it :stuck_out_tongue:

greets

My bet is that you’re not using multitexturing with shaders correctly but it’s hard to tell. Besides binding the two textures to different units, you need to set the uniform’s in the shader to the correct units. So if you bind your color texture to unit 0, you call glUniformi(“colorTexNam”, 0) to tell the shader to grab color information from the texture at 0. You don’t tell the shader the id of the texture, which can be a little confusing.

This is a guess because I don’t know everything you’re doing (once again, try to create a standalone Java app to experiment).