Trying to add some optimization. Need to remove an intersection test now
This commit is contained in:
@ -24,7 +24,7 @@ public class Player : MonoBehaviour
|
||||
|
||||
VoxelRaycastGPU.Ray[] rays = new VoxelRaycastGPU.Ray[rayCount];
|
||||
FillRaysArray(rays);
|
||||
voxelManager.gpuRayCaster.Init(rayCount, rays);
|
||||
voxelManager.gpuRayCaster.Init(rayCount, rays, 3);
|
||||
}
|
||||
|
||||
void Cast( ref VoxelRaycastGPU.BatchData[] batchData, int batchCount, int iIteration )
|
||||
@ -142,7 +142,7 @@ public class Player : MonoBehaviour
|
||||
VoxelRaycastGPU.BatchData[] batchDatas = new VoxelRaycastGPU.BatchData[1];
|
||||
|
||||
batchDatas[0].origin = origin;
|
||||
batchDatas[0].maxDistance = 100;
|
||||
batchDatas[0].maxDistance = 300;
|
||||
|
||||
Cast(ref batchDatas, 1, 0);
|
||||
sw.Stop();
|
||||
|
||||
Reference in New Issue
Block a user