This commit is contained in:
Rakarake 2025-12-10 19:07:35 +01:00
parent 1a190594fe
commit 90d565ff8d
3 changed files with 67 additions and 11 deletions

17
pulsating-noise.glsl Normal file
View 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);
}