I figured the only thing really needed would be to let Ogre render those objects last, but it isn't working. I'm using the following material definition:
Code: Select all
material GroundShadowMaterial
{
technique
{
pass
{
scene_blend dest_colour src_colour
depth_write off
transparent_sorting force
depth_bias 1
texture_unit
{
texture Lightmap.tga
}
}
}
}
I've also noticed that if I zoom the camera out, the shadows starts appearing on top of other objects, as if it gets an extreme depth_bias. This happens even if I remove the depth_bias.
What am I doing wrong here, why are my shadowplanes z-fighting?
Thanks in advance!