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;
        }
    }
Example #3
0
 static void RemoveObject(RayTracingShape obj)
 {
     isDirty = true;
     objectList.Remove(obj);
 }
Example #4
0
 static void UpdateObject(RayTracingShape obj)
 {
     isDirty = true;
 }
Example #5
0
 static void AddObject(RayTracingShape obj)
 {
     isDirty = true;
     objectList.Add(obj);
 }