Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Camera ¶
type Camera struct { // Location of the camera Origin r3.Vector // Direction that the camera is facing Direction r3.Vector // Direction of "up" for the screen, must be orthogonal to `Direction` Up r3.Vector // Field of view in the longer direction as an angle in radians // TODO: find bounds VerticalFov float64 // Apertrue radius for depth-of-field Aperture float64 // FocalDistance, exists iff `Aperture` is non-zero FocalDistance float64 }
func NewCamera ¶
NewCamera creates a camera placed at `from` and points towards `at`. Here, `up` specifies a vector which lies in the plane orthogonal to the view direction.
Click to show internal directories.
Click to hide internal directories.