assets.minecraft.shaders.program.textswap.fsh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of advancedfmk-uicompositor Show documentation
Show all versions of advancedfmk-uicompositor Show documentation
UI parser & renderer for Advanced Framework
The newest version!
#version 150
uniform sampler2D DiffuseSampler;
uniform sampler2D TextSwapSampler;
uniform vec4 ColorModulate;
in vec2 texCoord;
in vec2 oneTexel;
out vec4 fragColor;
void main() {
vec4 a = texture(TextSwapSampler, texCoord);
fragColor = mix(texture(DiffuseSampler, texCoord), vec4(a.rgb, 1.0), a.a);
}