Skip to content

Commit

Permalink
revert
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 6ed8a0f commit c9eba39
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions webray/src/shaders/webray.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ fn hit_sphere(sphere: Sphere, ray: Ray, ray_limits: Interval, hit: ptr<function,
if !interval_surrounds(ray_limits, root) {
root = (-half_b + sqrtd) / a;
if !interval_surrounds(ray_limits, root) {
return true;
return false;
}
}

Expand Down Expand Up @@ -381,7 +381,6 @@ fn render_ray(ray: Ray) -> vec3f {

accumulated_color *= attenuation;
} else { // else should never happen
accumulated_color = ERR_COLOR;
break;
}
} else {
Expand All @@ -390,7 +389,7 @@ fn render_ray(ray: Ray) -> vec3f {
}

// number of bounce visualization
accumulated_color = vec3f(1.0, 1.0, 1.0) / f32(bounce + 1);
// accumulated_color = vec3f(1.0, 1.0, 1.0) / f32(bounce + 1);

// max bounce condition
if bounce >= config.image.bounces {
Expand Down

0 comments on commit c9eba39

Please sign in to comment.