Example #1
0
 public Sphere GetSphere(int index)
 {
     sphere.centre        = CudaUtil.CheckPrimitiveCentre(index);
     sphere.materialColor = CudaUtil.CheckPrimitiveColor(index);
     sphere.radius        = CudaUtil.CheckPrimitiveRadius(index);
     return(sphere);
 }
Example #2
0
 public Plane GetPlane(int index)
 {
     plane.centre        = CudaUtil.CheckPrimitiveCentre(index);
     plane.materialColor = CudaUtil.CheckPrimitiveColor(index);
     plane.normal        = CudaUtil.CheckPrimitiveNormal(index);
     return(plane);
 }