playMaker

Author Topic: ALWAYS display shadow UNDER character (3d platformer)??  (Read 528 times)

Qbanyto

  • Full Member
  • ***
  • Posts: 137
  • Vista Larga, Paso corto
ALWAYS display shadow UNDER character (3d platformer)??
« on: February 26, 2021, 09:43:19 PM »
I'm working on a 3d platformer. What is the best way to display a shadow on the ground UNDER the character regardless of lighting position? this is essential for 3d platformers and I'm wondering how to implement this. Perhaps using a ray cast? and move the "shadow object" to where the hit is detected?

For that matter, what should the shadow made of? a 3d object? with a feathered/transparent type of shader?

Thanks guys!

ToxicFrog

  • Beta Group
  • Full Member
  • *
  • Posts: 139
Re: ALWAYS display shadow UNDER character (3d platformer)??
« Reply #1 on: February 27, 2021, 10:44:33 AM »
You could have a directional light above the character, and use the Culling mask to only affect the Player and Ground layers