IndustrialWires/src/main/resources/assets/industrialwires/shaders/marx.frag

9 lines
210 B
GLSL

#version 120
uniform float time;
#include random.frag
void main() {
float x = 2*(gl_Color.r-.5);
float y = gl_Color.a;
x -= .5*cnoise(vec2(10*y, time));
gl_FragColor = vec4(1, 1, 1, 1-abs(x));
}