We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de8e9de commit 5a944b5Copy full SHA for 5a944b5
1 file changed
node-graph/nodes/vector/src/vector_nodes.rs
@@ -1947,9 +1947,9 @@ async fn jitter_points(
1947
};
1948
1949
let offset = if let Some(normal) = normal {
1950
- (rng.random::<f64>() * 2. - 1.) * normal
+ normal * (rng.random::<f64>() * 2. - 1.)
1951
} else {
1952
- rng.random::<f64>() * DVec2::from_angle(rng.random::<f64>() * TAU)
+ DVec2::from_angle(rng.random::<f64>() * TAU) * rng.random::<f64>()
1953
1954
1955
inverse_linear * (offset * amount)
0 commit comments