public void UnregisterVxShadowMapComponent(PointVxShadowMap pointVxsm) { if (_pointVxShadowMapList.Contains(pointVxsm)) { _pointVxShadowMapList.Remove(pointVxsm); } }
public void RegisterVxShadowMapComponent(PointVxShadowMap pointVxsm) { #if UNITY_EDITOR if (_renderPipelineType == RenderPipelineType.Unknown) { Debug.LogWarning("Try to register VxShadowMap on 'unknown RenderPipeline', it may not work."); } else if (_renderPipelineType == RenderPipelineType.Lightweight) { Debug.LogWarning("VxShadowMap of PointLight is not supported on 'Lightweight RenderPipeline'."); return; } #endif if (_pointVxShadowMapList.Contains(pointVxsm)) { Debug.LogError("'" + pointVxsm.gameObject.name + "' is already registered. try to register duplicate vxsm!!"); } else { _pointVxShadowMapList.Add(pointVxsm); } }