public void RenderShadow(RenderTarget rt) { foreach (var key in dicRenderer.Keys) { ClusterRendering shadow = dicRenderer[key]; shadow.Render(rt); } }
public void Render(RenderTarget rt) { frustumCulling.Render(rt); matManager.Render(rt); foreach (var key in dicRenderer.Keys) { ClusterRendering rendering = dicRenderer[key]; rendering.Render(rt); } }
private void InitData(ScriptableRenderContext context) { bInit = true; data = new PipelineCommandData(); data.command = new CommandBuffer(); data.asset = asset; data.context = context; rendering = GameObject.FindGameObjectWithTag("GameController").GetComponent <ClusterRendering>(); }
public void UnloadScene(Dictionary <string, ClusterRendering> dic, string name) { if (!dic.ContainsKey(name)) { return; } matManager.Clear(); ClusterRendering rendering = dic[name]; rendering.Dispose(); dic.Remove(name); }
public void LoadScene(string name, SceneMode mode = SceneMode.Only) { if (mode == SceneMode.Only) { UnloadAll(); } int clusterCount = asset.res.GetClusterCount(name); frustumCulling.LoadScene(name, clusterCount); matManager.LoadScene(name); ClusterRendering renderer = new ClusterRendering(); renderer.Init(asset); renderer.LoadScene(name, clusterCount); dicRenderer.Add(name, renderer); }