소스 검색

Fix horizontal FOV

danaugrs 5 년 전
부모
커밋
0da024ed5f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      camera/camera.go

+ 1 - 1
camera/camera.go

@@ -246,7 +246,7 @@ func (c *Camera) ProjMatrix(m *math32.Matrix4) {
 			if c.axis == Horizontal {
 				fov *= c.aspect
 			}
-			c.projMatrix.MakePerspective(c.fov, c.aspect, c.near, c.far)
+			c.projMatrix.MakePerspective(fov, c.aspect, c.near, c.far)
 		case Orthographic:
 			s := c.size / 2
 			var h, w float32