Yes there is - clip your shadow geometry against the ground plane before it gets flattened. You can do this with the discard keyword in your shadow pixel shader.


On Tue, Sep 28, 2010 at 9:25 PM, <> wrote:

I have hooked up planar shadows for my Android Tank game using a matrix
to project all geometry onto the ground. The game has the luxury of
having  a 2D battle field.  The problem is that I am using instanced
rocks that are randomly rotated and pushed into ground.  So now I get a
reverse shadow projected from underneath.  Is there any way to get rid
of this?


Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
GDAlgorithms-list mailing list

Jeff Russell
Engineer, 8monkey Labs