UnityCommunity / UnityLibrary

:books: Library of all kind of scripts, snippets & shaders for Unity
https://unitycommunity.github.io/UnityLibrary/
MIT License
3.83k stars 446 forks source link

SpriteDropShadow shader issue when rotating sprite #34

Open unitycoder opened 5 years ago

unitycoder commented 5 years ago

This shader works like a charm!! The only thing that looks weird is when I rotate a sprite, then the direction of the shadow is wrong, is there a way to incorporate this into the shader so that the shadow is always in the same direction?

from https://forum.unity.com/threads/drop-shadow-shader-for-sprites.449123/#post-4737314

cc @smkplus

unitycoder commented 5 years ago

there is fix in the thread apparently, https://forum.unity.com/threads/drop-shadow-shader-for-sprites.449123/#post-4828877