File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/viewer/re_renderer/shader Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,9 @@ fn vs_main(@builtin(vertex_index) vertex_idx: u32) -> VertexOut {
131
131
/// 2D primitives are always facing the camera - the difference to sphere_quad_coverage is that
132
132
/// perspective projection is not taken into account.
133
133
fn circle_quad_coverage (world_position : vec3f , radius : f32 , circle_center : vec3f ) -> f32 {
134
- let distance = distance (circle_center , world_position );
135
- let feathering_radius = fwidth (distance ) * 0.5 ;
136
- return smoothstep (radius + feathering_radius , radius - feathering_radius , distance );
134
+ let circle_distance = distance (circle_center , world_position );
135
+ let feathering_radius = fwidth (circle_distance ) * 0.5 ;
136
+ return smoothstep (radius + feathering_radius , radius - feathering_radius , circle_distance );
137
137
}
138
138
139
139
fn coverage (world_position : vec3f , radius : f32 , point_center : vec3f ) -> f32 {
You can’t perform that action at this time.
0 commit comments