Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
push to cam for children
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Jun 19, 2018
1 parent 1000cd4 commit d921fbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/camera/camera3d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ function update_cam!(scene::Scene, cam::Camera3D)
proj = projection_switch(scene.px_area[], fov, near, far, projectiontype, zoom)
view = AbstractPlotting.lookat(eyeposition, lookat, upvector)

set_value!(scene.camera.projection, proj)
set_value!(scene.camera.view, view)
set_value!(scene.camera.projectionview, proj * view)
set_value!(scene.camera.eyeposition, cam.eyeposition[])
push!(scene.camera.projection, proj)
push!(scene.camera.view, view)
push!(scene.camera.projectionview, proj * view)
push!(scene.camera.eyeposition, cam.eyeposition[])
end

function update_cam!(scene::Scene, camera::Camera3D, area3d::Rect)
Expand Down

0 comments on commit d921fbb

Please sign in to comment.