Shadow blending
by Stephane Conde · in Torque Game Engine · 10/25/2005 (12:31 pm) · 1 replies
Shadows do not seem to be sorting properly. If you walk over a waterblock, your shadow will conform to the terrain beneath the waterblock, but the shadow doesn't blend with the water. The player's body blends nicely with the water and looks as if he's standing under-water, but the shadow does not for some reason.
I have looked at the game/shadow.cc file but have not come up with much. There is the void Shadow::UpdatePartition(F32 fog) function, but that just seems to set the color of the shadow. There is also the smDepthSortList for the shadow, but that just seems to determine at what depth the shadow gets rendered at. The waterblock render method seems to take care of properly blending shapes in the water, but does not deal with shadows.
Is anyone else encoutering this issue?
Thanks in advance for any help!
Stephane
Edit: typo
I have looked at the game/shadow.cc file but have not come up with much. There is the void Shadow::UpdatePartition(F32 fog) function, but that just seems to set the color of the shadow. There is also the smDepthSortList for the shadow, but that just seems to determine at what depth the shadow gets rendered at. The waterblock render method seems to take care of properly blending shapes in the water, but does not deal with shadows.
Is anyone else encoutering this issue?
Thanks in advance for any help!
Stephane
Edit: typo
About the author
Torque 3D Owner Stephane Conde