mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
20 lines
408 B
Scala
20 lines
408 B
Scala
$input v_color0, v_texcoord0
|
|
|
|
#include <bgfx_shader.sh>
|
|
|
|
SAMPLER2D(s_texColor, 0);
|
|
|
|
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
|
|
|
|
void main()
|
|
{
|
|
gl_FragColor = texture2D(s_texColor, v_texcoord0.xy)
|
|
* vec4( u_compose_mult
|
|
, u_compose_mult
|
|
, u_compose_mult
|
|
, u_compose_mult*u_compose_alpha
|
|
);
|
|
}
|