diff --git a/crates/re_renderer/shader/point_cloud.wgsl b/crates/re_renderer/shader/point_cloud.wgsl index e6e4a3d82f35d..63be6cdc0d352 100644 --- a/crates/re_renderer/shader/point_cloud.wgsl +++ b/crates/re_renderer/shader/point_cloud.wgsl @@ -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;