Fix a really stupid bug in the relight benchmark.

This commit is contained in:
David Vierra 2015-06-30 10:50:09 -10:00
parent d347035139
commit 2509b7e15e
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ def manmade_relight():
cx, cy, cz = poses.next()
indices = numpy.indices((16, 16, 16), numpy.int32)
indices.shape = 3, 16*16*16
indices += ([cx], [cy], [cz])
indices += ([cx << 4], [cy << 4], [cz << 4])
x, y, z = indices
relight.updateLightsByCoord(dim, x, y, z)

View File

@ -22,7 +22,7 @@ def natural_relight():
cx, cy, cz = poses.next()
indices = numpy.indices((16, 16, 16), numpy.int32)
indices.shape = 3, 16*16*16
indices += ([cx], [cy], [cz])
indices += ([cx << 4], [cy << 4], [cz << 4])
x, y, z = indices
relight.updateLightsByCoord(dim, x, y, z)