mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 22:29:28 -07:00
Renaming a value in highPass.frag
This commit is contained in:
@@ -3,9 +3,9 @@ varying vec2 vUV;
|
|||||||
uniform sampler2D tex;
|
uniform sampler2D tex;
|
||||||
uniform float highPassThreshold;
|
uniform float highPassThreshold;
|
||||||
void main() {
|
void main() {
|
||||||
vec3 lumaColor = texture2D(tex, vUV).rgb;
|
vec4 color = texture2D(tex, vUV);
|
||||||
if (lumaColor.r < highPassThreshold) lumaColor.r = 0.0;
|
if (color.r < highPassThreshold) color.r = 0.0;
|
||||||
if (lumaColor.g < highPassThreshold) lumaColor.g = 0.0;
|
if (color.g < highPassThreshold) color.g = 0.0;
|
||||||
if (lumaColor.b < highPassThreshold) lumaColor.b = 0.0;
|
if (color.b < highPassThreshold) color.b = 0.0;
|
||||||
gl_FragColor = vec4(lumaColor, 1.0);
|
gl_FragColor = color;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user