mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-11 05:53:23 -05:00
12 lines
286 B
GLSL
12 lines
286 B
GLSL
precision mediump float;
|
|
uniform sampler2D uTextureUnit;
|
|
uniform bool uIsTransparency;
|
|
varying vec2 vTexture;
|
|
|
|
void main() {
|
|
vec4 color = texture2D(uTextureUnit, vTexture);
|
|
if (uIsTransparency && color.a < 0.5) {
|
|
discard;
|
|
}
|
|
gl_FragColor = vec4(color.rgb, 1.0);
|
|
} |