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 45bb3da commit b00f675Copy full SHA for b00f675
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 934a5eba50aa90b7ab1822d62a2903255614eeef
+refs/heads/master: 0f6e90a5fd7a19382e3d3028bfcc36eb57135515
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 67c954e365970e4c2cd06f0c50724656d7010f45
5
refs/heads/try: 10089455287dcc3652b984ab4bfd6971e1b5f302
trunk/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