瀏覽代碼

Fix Spectator_Camera;

bjorn 5 年之前
父節點
當前提交
506c619748
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/Spectator_Camera/main.lua

+ 2 - 2
examples/Spectator_Camera/main.lua

@@ -2,8 +2,8 @@ function lovr.load()
   lovr.graphics.setBackgroundColor(.7, .7, .7)
 
   -- Precompute camera transform (could also be attached to a controller)
-  local x, y, z = -5, 5, 5
-  camera = lovr.math.newMat4():translate(x, y, z)--:lookAt(vec3(x, y, z), vec3(0, 0, 0))
+  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()
 end