From be21e827d8891d1c0d72a681e6d3960e76692453 Mon Sep 17 00:00:00 2001 From: Wojtek Pachowiak <50328147+WojtekPachowiak@users.noreply.github.com> Date: Thu, 9 Feb 2023 14:15:14 +0100 Subject: [PATCH] fix: mentioned 'fract' instead of 'rand' --- 11/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/11/README.md b/11/README.md index fb84d54..d5d933a 100644 --- a/11/README.md +++ b/11/README.md @@ -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)