Sorry to bother you again. The shadow is perfect now, but I want more. For example, is there a way to achieve the effect of a blurred mirror image?
Take another look at the picture I provided above. The mirror image appears to have a fade-out effect from top to bottom。Notice the car in the mirror image
It’s already what happens, the level of blackness depends on distance.
I updated the PG to make it more visible:
I set cameraBottom.beta = 1 to better see the shadow, and compensate the shift on the ground with rtt.vOffset = 0.07. I also updated cameraBottom.minZ/maxZ so that the whole shadow of the character is visible.
You can try to update the formula line 280 to change how the blackness changes with distance.