mns-mini-zabor/utils/dith.frag

10 lines
246 B
GLSL

#include <dithering_fragment>
// vec2 st = vec2(vDistance,vDistance)/vec2(u_resolution);
vec2 st = gl_FragCoord.xy / vec2(u_resolution);
vec3 pos = vec3(st * 5.0, 1.0 * 0.5);
vec3 color = vec3(noise(pos));
// gl_FragColor = vec4(normal, 1.0);