Sha256: b27eedc5b182460a138ae664deaf116e5228cd639fa29811d279f89f4171cf89
Contents?: true
Size: 567 Bytes
Versions: 11
Compression:
Stored size: 567 Bytes
Contents
#version 110 #include <rand> // Rather poor quality noise generation, but better than nothing and sort of looks like TV static a bit. uniform sampler2D in_Texture; uniform int in_WindowWidth; // Not used. uniform int in_WindowHeight; // Not used. uniform float in_Intensity; uniform float in_T; varying vec2 var_TexCoord; void main() { vec4 color = texture2D(in_Texture, var_TexCoord); vec4 influence = min(color, 1.0 - color); float noise = 1.0 - 2.0 * rand(var_TexCoord + float(in_T)); gl_FragColor = color + in_Intensity * influence * noise; }
Version data entries
11 entries across 11 versions & 2 rubygems