예제 #1
0
        public bool ChangeSphere(int index, Sphere sphere)
        {
            CudaUtil.ChangePrimitiveCentre(index, sphere.centre);
            CudaUtil.ChangePrimitiveColor(index, sphere.materialColor);
            CudaUtil.ChangePrimitiveRadius(index, sphere.radius);
            Log.instance.writeLog("将球的参数变为,质心:" + sphere.centre.x.ToString() + sphere.centre.y.ToString() + sphere.centre.z.ToString());

            return(true);
        }