eo/shaders/fs_basic.sc

15 lines
273 B
Python
Raw Permalink Normal View History

2024-11-15 00:12:51 +00:00
$input v_texcoord0
2024-11-15 00:12:51 +00:00
uniform sampler2D u_texture_color;
#include <bgfx_shader.sh>
#include <shaderlib.sh>
void main() {
vec4 color = texture2D(u_texture_color, v_texcoord0);
if (color.r == 0 && color.g == 0 && color.b == 0) {
return;
}
gl_FragColor = color;
}