I waste several hours

This commit is contained in:
Anuken
2022-02-11 11:33:06 -05:00
parent fcb4c232e8
commit 4a216056d0
14 changed files with 334 additions and 24 deletions

View File

@@ -0,0 +1,12 @@
#define HIGHP
#define QUANT 0.3
uniform sampler2D u_texture;
varying vec4 v_color;
varying vec2 v_texCoords;
void main(){
vec4 color = texture2D(u_texture, v_texCoords.xy);
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0 - floor(color.r / QUANT) * QUANT);
}