mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
12 lines
273 B
Scala
12 lines
273 B
Scala
$input v_color0, v_texcoord0
|
|
|
|
#include <bgfx_shader.sh>
|
|
|
|
SAMPLER2D(s_lineTexture, 0);
|
|
|
|
uniform float u_compose_alpha;
|
|
|
|
void main() {
|
|
vec4 texColor = texture2D(s_lineTexture, v_texcoord0.xy);
|
|
gl_FragColor = v_color0 * texColor * vec4(1.0, 1.0, 1.0, u_compose_alpha);
|
|
}
|