/TileableShadowCaster2D

Unity Script which incorporates a tiled (9 Slice Game Object) into the URP lighting model

Primary LanguageC#

TileableShadowCaster2D

A Unity Script that automatically incorporates a tiled (9 Slice Game Object) into the URP lighting model by adjusting the size of the object's shadow.

Place This script on an object with Sprite Renderer Draw Mode selected as Tiled.

Before

Screenshot_8

After

Screenshot_9