set_perspective Subroutine

private subroutine set_perspective(self, fovy)

A perspective projection with vertical field of view fovy (degrees; default 45).

Type Bound

View

Arguments

Type IntentOptional Attributes Name
class(View), intent(inout) :: self
real(kind=wp), intent(in) :: fovy

vertical field of view (degrees)


Source Code

    subroutine set_perspective(self, fovy)
        class(View), intent(inout) :: self
        real(wp), intent(in) :: fovy        !! vertical field of view (degrees)
        self%projection = PERSPECTIVE
        self%fovy = fovy
    end subroutine set_perspective