Skip to content

Commit

Permalink
Possible typo?
Browse files Browse the repository at this point in the history
I'm just going through your example – thanks a lot, I really enjoy learning WGSL through bevy_hanabi!
One little thing that confused me: the comments state that there is a radius of "2 units", however the code says it's 0.5. Is there something I didn't get or is this a simple typo?
  • Loading branch information
kraftwer1 authored Oct 15, 2024
1 parent 1ad6298 commit c99209a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn setup(mut effects: ResMut<Assets<EffectAsset>>) {
// to be over the surface of a sphere of radius 2 units.
let init_pos = SetPositionSphereModifier {
center: module.lit(Vec3::ZERO),
radius: module.lit(0.05),
radius: module.lit(2.),
dimension: ShapeDimension::Surface,
};

Expand Down

0 comments on commit c99209a

Please sign in to comment.