|
@@ -3,8 +3,8 @@ function lovr.load()
|
|
|
|
|
|
-- Precompute camera transform (could also be attached to a controller)
|
|
-- Precompute camera transform (could also be attached to a controller)
|
|
local x, y, z = -3, 3, 3
|
|
local x, y, z = -3, 3, 3
|
|
- camera = lovr.math.newMat4():lookAt(vec3(x, y, z), vec3(0, 0, 0))
|
|
|
|
- view = lovr.math.newMat4(camera):invert()
|
|
|
|
|
|
+ camera = lovr.math.newMat4():target(vec3(x, y, z), vec3(0, 0, 0))
|
|
|
|
+ view = lovr.math.newMat4():lookAt(vec3(x, y, z), vec3(0, 0, 0))
|
|
end
|
|
end
|
|
|
|
|
|
local renderScene
|
|
local renderScene
|