voxelTraversal

@brief returns all the voxels that are traversed by a ray going from start to end @param start : continous world position where the ray starts @param end : continous world position where the ray end @return vector of voxel ids hit by the ray in temporal order

J. Amanatides, A. Woo. A Fast Voxel Traversal Algorithm for Ray Tracing. Eurographics '87

nothrow @nogc
void
voxelTraversal
(
vec3f rayStart
,
vec3f rayEnd
,
VOX* vox
,
ref Vec!vec3i visitedVoxels
)

Meta