public void Execute(int index) { ReflectionCube cube = ReflectionCube.allCubes[index]; if (PipelineFunctions.FrustumCulling(ref cube.localToWorld, new Vector3(0.5f, 0.5f, 0.5f), planes)) { #if UNITY_EDITOR //For debugging if (!resultIndices.ConcurrentAdd(index)) { Debug.LogError("Reflection culling Out of range"); } #else resultIndices.ConcurrentAdd(index); #endif } }
public void Execute(int index) { CustomDrawRequest cdr = CustomDrawRequest.AllEvents[index]; if (cdr.Cull(frustumPlanes)) { cullResult.ConcurrentAdd(index); } }