mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-11 13:10:57 +00:00
Merge pull request #247 from DevinFrenze/correct-references-to-gradient-noise
correct references to gradient noise
This commit is contained in:
commit
981c31c29d
@ -12,8 +12,8 @@ vec2 random2(vec2 st){
|
|||||||
return -1.0 + 2.0*fract(sin(st)*43758.5453123);
|
return -1.0 + 2.0*fract(sin(st)*43758.5453123);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Value Noise by Inigo Quilez - iq/2013
|
// Gradient Noise by Inigo Quilez - iq/2013
|
||||||
// https://www.shadertoy.com/view/lsf3WH
|
// https://www.shadertoy.com/view/XdXGW8
|
||||||
float noise(vec2 st) {
|
float noise(vec2 st) {
|
||||||
vec2 i = floor(st);
|
vec2 i = floor(st);
|
||||||
vec2 f = fract(st);
|
vec2 f = fract(st);
|
||||||
|
@ -18,8 +18,8 @@ vec2 random2(vec2 st){
|
|||||||
return -1.0 + 2.0*fract(sin(st)*43758.5453123);
|
return -1.0 + 2.0*fract(sin(st)*43758.5453123);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Value Noise by Inigo Quilez - iq/2013
|
// Gradient Noise by Inigo Quilez - iq/2013
|
||||||
// https://www.shadertoy.com/view/lsf3WH
|
// https://www.shadertoy.com/view/XdXGW8
|
||||||
float noise(vec2 st) {
|
float noise(vec2 st) {
|
||||||
vec2 i = floor(st);
|
vec2 i = floor(st);
|
||||||
vec2 f = fract(st);
|
vec2 f = fract(st);
|
||||||
|
@ -12,8 +12,8 @@ vec2 random2(vec2 st){
|
|||||||
return -1.0 + 2.0*fract(sin(st)*43758.5453123);
|
return -1.0 + 2.0*fract(sin(st)*43758.5453123);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Value Noise by Inigo Quilez - iq/2013
|
// Gradient Noise by Inigo Quilez - iq/2013
|
||||||
// https://www.shadertoy.com/view/lsf3WH
|
// https://www.shadertoy.com/view/XdXGW8
|
||||||
float noise(vec2 st) {
|
float noise(vec2 st) {
|
||||||
vec2 i = floor(st);
|
vec2 i = floor(st);
|
||||||
vec2 f = fract(st);
|
vec2 f = fract(st);
|
||||||
|
@ -12,8 +12,8 @@ vec2 random2(vec2 st){
|
|||||||
return -1.0 + 2.0*fract(sin(st)*43758.5453123);
|
return -1.0 + 2.0*fract(sin(st)*43758.5453123);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Value Noise by Inigo Quilez - iq/2013
|
// Gradient Noise by Inigo Quilez - iq/2013
|
||||||
// https://www.shadertoy.com/view/lsf3WH
|
// https://www.shadertoy.com/view/XdXGW8
|
||||||
float noise(vec2 st) {
|
float noise(vec2 st) {
|
||||||
vec2 i = floor(st);
|
vec2 i = floor(st);
|
||||||
vec2 f = fract(st);
|
vec2 f = fract(st);
|
||||||
|
Loading…
Reference in New Issue
Block a user