/// <summary> /// 激活cache渲染 /// </summary> public void ActiveCacheRendering() { if (CurrCachingEffectTable.Count <= 0) { return; } Vector3 effectPos = Initialize.mainCam.transform.position; Vector3 pos = Vector3.zero; pos.z = 20; pos = Initialize.mainCam.transform.rotation * pos; effectPos += pos; foreach (int ids in CurrCachingEffectTable.Keys) { LightingEffectResHandle halde = LightingEffectFactory.Instance.AllocResourcesHandle(ids); halde.ActiveCacheRendering(effectPos); } }