|
Toast Engine
|


Go to the source code of this file.
Classes | |
| struct | voxel::RayHit |
Functions | |
| auto | voxel::marchRay (const gpu::PackedPool &pool, const gpu::PackedScene &scene, uint32_t volume, glm::vec3 origin, glm::vec3 direction, float t_min, float t_max, uint32_t max_steps=k_max_march_steps) -> RayHit |
CPU twin of voxel_dda.slang marchRay so change both together direction need not be normalised and zero components are allowed. | |
Variables | |
| constexpr uint32_t | voxel::k_max_march_steps = 1024 |
| constexpr float | voxel::k_march_tie_epsilon = 1e-6f |
| Relative to t. | |