Renaming the shaders again, because the extensions I gave them were confusing GitHub's syntax highlighting.

This commit is contained in:
Rezmason
2021-10-23 01:28:32 -07:00
parent a979e87564
commit 69d4e7365c
15 changed files with 9 additions and 9 deletions

View File

@@ -0,0 +1,11 @@
precision mediump float;
varying vec2 vUV;
uniform sampler2D tex;
uniform float highPassThreshold;
void main() {
vec4 color = texture2D(tex, vUV);
if (color.r < highPassThreshold) color.r = 0.0;
if (color.g < highPassThreshold) color.g = 0.0;
if (color.b < highPassThreshold) color.b = 0.0;
gl_FragColor = color;
}