コード例 #1
0
 public Sphere GetSphere(int index)
 {
     sphere.centre        = CudaUtil.CheckPrimitiveCentre(index);
     sphere.materialColor = CudaUtil.CheckPrimitiveColor(index);
     sphere.radius        = CudaUtil.CheckPrimitiveRadius(index);
     return(sphere);
 }