diff --git a/Assets/Scripts/Lighting/ShadowVolumeManager.cs b/Assets/Scripts/Lighting/ShadowVolumeManager.cs index 3ccdfe12..ff001699 100644 --- a/Assets/Scripts/Lighting/ShadowVolumeManager.cs +++ b/Assets/Scripts/Lighting/ShadowVolumeManager.cs @@ -25,6 +25,15 @@ public class ShadowVolumeManager : MonoBehaviour private double lastUpdateTimeEditor = 0.0f; private bool isDirty = true; + private void Awake() + { + if (!SystemInfo.supportsComputeShaders) + { + Debug.LogError("Shadow volumes not supported on this platform (SystemInfo.supportsComputeShaders == false)"); + DestroyImmediate(this); + } + } + private void Start() { if (!initialised)