15 lines
273 B
Scala
15 lines
273 B
Scala
$input v_texcoord0
|
|
|
|
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;
|
|
}
|