Skip to content

Commit

Permalink
Merge pull request patriciogonzalezvivo#396 from WojtekPachowiak/patch-2
Browse files Browse the repository at this point in the history
fix: mentioned 'fract' instead of 'rand'
  • Loading branch information
patriciogonzalezvivo authored Apr 8, 2023
2 parents 689f92e + be21e82 commit 7f92a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Now it's your turn:

![](02.png)

Now that we know how to do noise in 1D, it's time to move on to 2D. In 2D, instead of interpolating between two points of a line (```fract(x)``` and ```fract(x)+1.0```), we are going to interpolate between the four corners of the square area of a plane (```fract(st)```, ```fract(st)+vec2(1.,0.)```, ```fract(st)+vec2(0.,1.)``` and ```fract(st)+vec2(1.,1.)```).
Now that we know how to do noise in 1D, it's time to move on to 2D. In 2D, instead of interpolating between two points of a line (```rand(x)``` and ```rand(x)+1.0```), we are going to interpolate between the four corners of the square area of a plane (```rand(st)```, ```rand(st)+vec2(1.,0.)```, ```rand(st)+vec2(0.,1.)``` and ```rand(st)+vec2(1.,1.)```).

![](01.png)

Expand Down

0 comments on commit 7f92a1b

Please sign in to comment.