Skip to content

Commit

Permalink
fixed incorrect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Nov 8, 2022
1 parent d312fe0 commit 5251c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/re_renderer/shader/point_cloud.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fn vs_main(@builtin(vertex_index) vertex_idx: u32) -> VertexOut {


// Returns distance to sphere surface (x) and distance to of closest ray hit (y)
// Via https://iquilezles.org/articles/spherefunctions/ with some adjustments - in particular the original returns negative thicknes.
// Via https://iquilezles.org/articles/spherefunctions/ but with more verbose names.
fn sphere_distance(ray_origin: Vec3, ray_dir: Vec3, sphere_origin: Vec3, sphere_radius: f32) -> Vec2 {
let sphere_radius_sq = sphere_radius * sphere_radius;
let sphere_to_origin = ray_origin - sphere_origin;
Expand Down

0 comments on commit 5251c9e

Please sign in to comment.