Well what I wanted to do was use the sprite as a negative modulated image, so it darkens stuff under it (which was working fine) but then alpha fade the sprite out as the car moves above the track, so when landing from a jump the shadow fades in slowly as the car descends, rather than just popping into place.
I don't want to linepick for miles below the car, so I've limited that to a close pick and am therefore only placing the shadow when the car is quite close to the track surface.
I'm also scaling the shadow to get smaller as the car moves up, and due to that I hadn't spotted that the alpha wasn't in fact working (for the past 2 years!!)
Anyway, I've set the sprite to be normally alpha blended instead of multiplied, and that works fine.
|