Jan
31
2013

Fake SpotLight Shadows

fake_spotlight_shadow1

Testing one idea for fake spotlight shadows. In the image, spotlight is at the wall, cylinder column is there to block light. (shadowmap size 1024×1024)

Current version info:
– Have to build the shadow texture manually..(later should be possible to do it all in script)
– Its static, atleast for now (if the cylinder moves..shadow doesnt update, unless you build new shadow map..)
– Might work on pointlights also
– more later..

Webplayer:
coming later..

Image#2: Shadow map size 16×16, creates nice soft shadow (should be small enough to be updated in realtime – even with raycasting?)

fake_spotlight_shadow2


1 Comment + Add Comment

  • Interesting!

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.