Screw it, I added light

This commit is contained in:
RochesterX
2025-04-20 22:23:34 -04:00
parent 14970499b8
commit be63f2e19d
19 changed files with 9834 additions and 29 deletions

16
Assets/ShadowUpdater.cs Normal file
View File

@@ -0,0 +1,16 @@
using UnityEngine;
using UnityEngine.Rendering.Universal;
public class ShadowUpdater : MonoBehaviour
{
public bool restrictSelfShadows = false;
private void Start()
{
gameObject.AddComponent<ShadowCaster2D>();
if (restrictSelfShadows)
{
ShadowCaster2D shadowCaster = GetComponent<ShadowCaster2D>();
shadowCaster.selfShadows = false;
}
}
}