2014-11-16 03:10:44 +03:00
|
|
|
$input v_color0, v_texcoord0
|
|
|
|
|
|
|
|
#include <bgfx_shader.sh>
|
|
|
|
|
2015-05-29 01:27:00 +03:00
|
|
|
SAMPLER2D(s_texColor, 0);
|
2014-11-16 03:10:44 +03:00
|
|
|
|
2015-05-29 01:27:00 +03:00
|
|
|
uniform vec4 u_params;
|
|
|
|
#define u_blur_scale u_params.xy
|
|
|
|
#define u_compose_mult u_params.z
|
|
|
|
#define u_compose_alpha u_params.w
|
2014-11-16 03:10:44 +03:00
|
|
|
|
|
|
|
void main() {
|
2015-05-29 01:27:00 +03:00
|
|
|
vec4 texColor = texture2D(s_texColor, v_texcoord0.xy);
|
2014-11-16 03:10:44 +03:00
|
|
|
gl_FragColor = v_color0 * texColor * vec4(1.0, 1.0, 1.0, u_compose_alpha);
|
|
|
|
}
|