Documentation ¶
Overview ¶
Package camera provides a virtual camera that allows for taking pictures of a scene.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RayForPixel ¶
RayForPixel returns a new ray that starts at the passed camera and passes through the indicated (x, y) pixel on the canvas.
Types ¶
type Camera ¶
type Camera struct {
// contains filtered or unexported fields
}
Camera is a virtual Camera that can be moved around, zoomed in and out, and transformed around a scene.
Click to show internal directories.
Click to hide internal directories.