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 934a5eb commit 0f6e90aCopy full SHA for 0f6e90a
src/test/bench/noise.rs
@@ -25,7 +25,7 @@ fn random_gradient<R:Rng>(r: &mut R) -> Vec2 {
25
26
fn gradient(orig: Vec2, grad: Vec2, p: Vec2) -> f32 {
27
let sp = Vec2 {x: p.x - orig.x, y: p.y - orig.y};
28
- grad.x * sp.x + grad.y + sp.y
+ grad.x * sp.x + grad.y * sp.y
29
}
30
31
struct Noise2DContext {
0 commit comments