summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/debugdraw/vs_debugdraw_fill.sc
blob: fd63188124890c3aa112d6feb1b76e72fa504ef0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$input a_position, a_indices

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

#include <bgfx_shader.sh>

void main()
{
	vec4 model = mul(u_model[int(a_indices.x)], vec4(a_position, 1.0) );
	gl_Position = mul(u_viewProj, model);
}