static blue pulsating noise
This commit is contained in:
parent
652d9fa921
commit
1a190594fe
2 changed files with 41 additions and 12 deletions
|
|
@ -2,8 +2,13 @@
|
|||
out vec4 FragColor;
|
||||
in vec2 uv;
|
||||
uniform vec2 WindowSize;
|
||||
uniform float time;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = vec4(gl_FragCoord.xy / WindowSize, 0.0, 1.0);
|
||||
float rand(vec2 co){
|
||||
return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453);
|
||||
}
|
||||
|
||||
void main() {
|
||||
float glob = rand(gl_FragCoord.xy / WindowSize + 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