Shadow mapping with multi light source

Started by
12 comments, last by coba2 16 years, 7 months ago
theres different possible ways heres sorta what i do

init - create 100 shadowmaps

SM creation (each frame)
for each light
{
render depth info into a different shadowmap
}

// drawing
for each light
{
bind that lights shadowmap
draw all objects within the lights radius
}
Advertisement
So, I must render from each light and save it in each shadow map. After that, I render from camera. And each shadow map must be bind into one shadow map that will be compare with the camera's result. It's right?? By the way, thanks for your help.
yes
OK2.. Thanx for your tutorial... Now I will try it. Maybe if there some problem, I will ask again.

This topic is closed to new replies.

Advertisement