zhucde
15-01-2009 04:06:27
how to use PSSM(Parallel Split Shadow Mapping , see: http://www.ogre3d.org/wiki/index.php/Pa ... ow_Mapping),
it has a good effect on show map, but , when use it , we should change the ETM terrain's material to accept the show map ,
writted with CG, i am a newbie of CG, so who can tell me how to change the ETMTerrain.material ?
add follow code will using the PSSM:
add where ?
it has a good effect on show map, but , when use it , we should change the ETM terrain's material to accept the show map ,
writted with CG, i am a newbie of CG, so who can tell me how to change the ETMTerrain.material ?
add follow code will using the PSSM:
technique
{
pass
{
ambient 1 1 1 1
diffuse 1 1 1 1
scene_blend modulate
vertex_program_ref PSSM/shadow_receiver_vs {}
fragment_program_ref PSSM/shadow_receiver_ps {}
texture_unit shadow_tex0
{
content_type shadow
tex_address_mode clamp
}
texture_unit shadow_tex1
{
content_type shadow
tex_address_mode clamp
}
texture_unit shadow_tex2
{
content_type shadow
tex_address_mode clamp
}
texture_unit diffuse_tex
{
// texture $diffuse
}
}
}
add where ?