Skip to content

Commit

Permalink
fix #80 #76
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Nov 17, 2017
1 parent f3cd0ff commit 79cb6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GLCamera.jl
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ function PerspectiveCamera(
right_v = normalize(cross(up_v, dir))
up_v = normalize(cross(dir, right_v))

rotation = rotate_cam(theta_v, right_v, Vec3f0(0,0,1), dir)
rotation = rotate_cam(theta_v, right_v, Vec3f0(0, 0, sign(up_v[3])), dir)
r_eyepos = lookat_v + rotation*(eyepos_v - lookat_v)
r_up = normalize(rotation*up_v)
push!(eyeposition, r_eyepos)
Expand Down

0 comments on commit 79cb6e3

Please sign in to comment.