p
This commit is contained in:
parent
1a190594fe
commit
90d565ff8d
3 changed files with 67 additions and 11 deletions
17
pulsating-noise.glsl
Normal file
17
pulsating-noise.glsl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
uniform vec2 WindowSize;
|
||||
uniform float time;
|
||||
|
||||
float rand(vec2 co){
|
||||
return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453);
|
||||
}
|
||||
|
||||
float cell_size = 0.1;
|
||||
|
||||
void main() {
|
||||
vec2 uv = gl_FragCoord.xy / WindowSize;
|
||||
// grid
|
||||
float glob = rand(uv + time);
|
||||
FragColor = vec4(glob * (sin(time)/2 + 0.5), glob, 1.0, 1.0); //vec4(gl_FragCoord.xy / WindowSize, 0.0, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue