void OnDrawGizmos() { if (drawBounds) { RayTracingShape.DrawGizmos(); } }
void UpdateComputeBuffer() { var count = 0; if (RayTracingShape.UpdateComputeBufferIfNeeded(ref shapeBuffer, out count)) { prepareCS.SetInt("_ShapeNumber", count); rayTracingCS.SetInt("_ShapeNumber", count); RayTracingShape.RebuildAabbTree(); sceneChanged = true; } }
static void RemoveObject(RayTracingShape obj) { isDirty = true; objectList.Remove(obj); }
static void UpdateObject(RayTracingShape obj) { isDirty = true; }
static void AddObject(RayTracingShape obj) { isDirty = true; objectList.Add(obj); }