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
}
Shadow mapping with multi light source
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement