summaryrefslogtreecommitdiffstats
path: root/3rdparty/bgfx/examples/common/debugdraw/fs_debugdraw_fill_texture.sc
blob: ff4db9d6b28bc2da93a032ad18d7c203a6285135 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$input v_texcoord0, v_color0

/*
 * Copyright 2011-2021 Branimir Karadzic. All rights reserved.
 * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
 */

#include <bgfx_shader.sh>

SAMPLER2D(s_texColor, 0);

void main()
{
	gl_FragColor = texture2D(s_texColor, v_texcoord0) * v_color0;
}