mirror of https://github.com/bjornbytes/lovr.git
Fix monkeycrush index;
There was a bugfix that makes model vertex indices 1-based.
This commit is contained in:
parent
119935fdd9
commit
dc93920816
|
@ -42,7 +42,7 @@ io.write('};\n\n')
|
||||||
|
|
||||||
io.write('uint16_t monkey_indices[] = {\n ')
|
io.write('uint16_t monkey_indices[] = {\n ')
|
||||||
for i = 1, model:getMeshIndexCount(1) do
|
for i = 1, model:getMeshIndexCount(1) do
|
||||||
local index = model:getMeshIndex(1, i)
|
local index = model:getMeshIndex(1, i) - 1
|
||||||
io.write((' %d,'):format(index))
|
io.write((' %d,'):format(index))
|
||||||
if i % 10 == 0 then
|
if i % 10 == 0 then
|
||||||
io.write('\n ')
|
io.write('\n ')
|
||||||
|
|
Loading…
Reference in New Issue