5 lines
138 B
GLSL
5 lines
138 B
GLSL
|
|
//courtesy https://stackoverflow.com/a/4275343
|
|
float rand(vec2 co){
|
|
return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453);
|
|
} |