summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/debugdraw/vs_debugdraw_fill.sc
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/common/debugdraw/vs_debugdraw_fill.sc')
-rw-r--r--3rdparty/bgfx/examples/common/debugdraw/vs_debugdraw_fill.sc5
1 files changed, 3 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/common/debugdraw/vs_debugdraw_fill.sc b/3rdparty/bgfx/examples/common/debugdraw/vs_debugdraw_fill.sc
index d007e9367cd..58f7be44248 100644
--- a/3rdparty/bgfx/examples/common/debugdraw/vs_debugdraw_fill.sc
+++ b/3rdparty/bgfx/examples/common/debugdraw/vs_debugdraw_fill.sc
@@ -1,4 +1,4 @@
-$input a_position
+$input a_position, a_indices
/*
* Copyright 2011-2016 Branimir Karadzic. All rights reserved.
@@ -9,5 +9,6 @@ $input a_position
void main()
{
- gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0) );
+ vec4 model = mul(u_model[int(a_indices.x)], vec4(a_position, 1.0) );
+ gl_Position = mul(u_viewProj, model);
}