bgfx/examples/23-vectordisplay/fs_vectordisplay_fb.sc

13 lines
273 B
Python
Raw Normal View History

2014-11-16 03:10:44 +03:00
$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);
}