Skip to content

Commit

Permalink
Update glitch.fragment
Browse files Browse the repository at this point in the history
add source info
  • Loading branch information
laamaa authored Sep 6, 2021
1 parent 10c7838 commit 16e4782
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions glitch.fragment
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#version 130

// ---- gllock required fields -----------------------------------------------------------------------------------------
// Source: https://github.com/kuravih/gllock

#define RATE 0.25

uniform float time;
uniform sampler2D tex0;
uniform vec2 rubyTextureSize;
varying vec2 fragCoord;
// ----------------------------


float rand(float seed){
return fract(sin(dot(vec2(seed) ,vec2(12.9898,78.233))) * 43758.5453);
Expand Down Expand Up @@ -68,4 +67,4 @@ void main(void) {
gl_FragColor = interlace(fragCoord.xy, vec4(rcolor, gcolor, bcolor, 1));


}
}

0 comments on commit 16e4782

Please sign in to comment.