Fix a really stupid bug in the relight benchmark.
This commit is contained in:
parent
d347035139
commit
2509b7e15e
@ -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)
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user