A perspective projection with vertical field of view fovy (degrees; default 45).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(View), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | fovy |
vertical field of view (degrees) |
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