Screw it, I added light
This commit is contained in:
16
Assets/ShadowUpdater.cs
Normal file
16
Assets/ShadowUpdater.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user