Skip to content

Commit

Permalink
break viz
Browse files Browse the repository at this point in the history
Signed-off-by: Devashish Lal <[email protected]>
  • Loading branch information
BLaZeKiLL committed Jun 24, 2024
1 parent 85802ae commit d4ed9a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webray/src/shaders/webray.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ fn hit_sphere(sphere: Sphere, ray: Ray, ray_limits: Interval, hit: ptr<function,

return true;
}

fn hit_spheres(ray: Ray, ray_limits: Interval, hit: ptr<function, HitRecord>) -> bool {
var temp_hit = HitRecord();
var hit_anything = false;
Expand Down Expand Up @@ -380,10 +381,11 @@ fn render_ray(ray: Ray) -> vec3f {

accumulated_color *= attenuation;
} else { // else should never happen
accumulated_color = ERR_COLOR;
accumulated_color = ERR_COLOR; // break viz
break;
}
} else {
return ERR_COLOR;
break;
}
}
Expand Down

0 comments on commit d4ed9a7

Please sign in to comment.