Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/util/fmath.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ bool ray_block(struct Ray ray, f32 max_distance, void *arg, bool (*f)(void *, iv
tmax = intbound(ray.origin, d);
tdelta = glms_vec3_div(IVEC3S2V(step), d);
radius = max_distance / glms_vec3_norm(d);
*d_out = UP;

while (true) {
if (f(arg, p)) {
Expand Down