informa
1 MIN READ
Blogs

Fake/Accurate shadows in Unity for mobiles

Faking a shadow in game engines is not a new topic. But the way itself you use to fake the shadow might be the new topic.

After reading an article here in Gamasutra, I found it might be usefull for some one to save some of his game performance in case he needs.

Faking a shadow in game engines is not a new topic. But the way itself you use to fake the shadow might be the new topic. As the tutorial is a video tutorial, here listed a quick summary about the method:

1- Pick a piece of animation.
2- Render/draw it from top view as *.png sequence.
3- Build a sprite atlas in your editor.
4- Build a 2d animated sequence for each animation loop.
5- Adjust the shadow transparency, color,.....etc.
6- Add it to the character/object hierarchy.
7- Change the active animated shadow state according to the character current animation state,via code "not in the video".



 

thanks!

Latest Jobs

Xbox Game Studios

Redmond, Washington
10.5.22
Technical Lighting Artist

Innogames

Hamburg, Germany
10.5.22
Game Designer - Elvenar

Six Foot

Houston, TX
10.3.22
Six Foot Director, Player Relations

Hometopia Inc.

Remote
10.7.22
Lead Engineer
More Jobs   

CONNECT WITH US

Explore the
Subscribe to
Follow us

Game Developer Job Board

Game Developer Newsletter

@gamedevdotcom

Explore the

Game Developer Job Board

Browse open positions across the game industry or recruit new talent for your studio

Browse
Subscribe to

Game Developer Newsletter

Get daily Game Developer top stories every morning straight into your inbox

Subscribe
Follow us

@gamedevdotcom

Follow us @gamedevdotcom to stay up-to-date with the latest news & insider information about events & more