Toast Engine
Loading...
Searching...
No Matches
ray_march.hpp File Reference
#include "gpu_layout.hpp"
#include <cstdint>
#include <glm/glm.hpp>
#include <toast/export.hpp>
Include dependency graph for ray_march.hpp:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Author
dario
Date
13/09/2026