Oct
19
2023

2 Sided Lighting for Sprite Diffuse Shader

Interesting question at
https://forum.unity.com/threads/making-normal-maps-work-on-both-sides-of-a-2d-sprite-in-3d-space.1507538/

Made quick test with BiRP, modified sprite surface shader, with custom lighting (added “abs” into dot normal)..

Source:
https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Shaders/2D/Sprites/Diffuse%20(2%20Sided%20Light).shader#L48


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.