add wallpaper :)
This commit is contained in:
parent
4bfe0b08b7
commit
a996b8890e
9 changed files with 216 additions and 0 deletions
23
common/automapaper/init.frag
Normal file
23
common/automapaper/init.frag
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#version 310 es
|
||||
precision highp float;
|
||||
|
||||
uniform float time;
|
||||
uniform vec2 resolution;
|
||||
|
||||
out vec4 stateColor;
|
||||
|
||||
float PHI = 1.61803398874989484820459; // Φ = Golden Ratio
|
||||
|
||||
float gold_noise(in vec2 xy, in float seed){
|
||||
return fract(tan(distance(xy*PHI, xy)*seed)*xy.x);
|
||||
}
|
||||
|
||||
void main( void ) {
|
||||
|
||||
vec2 position = gl_FragCoord.xy;
|
||||
float color = gold_noise(position.xy, fract(time));
|
||||
|
||||
|
||||
stateColor = vec4(step(0.3, color), 0,0,step(0.3, color));
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue