camera

package
v0.0.0-...-052c9d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera struct {
	// contains filtered or unexported fields
}

func NewCamera

func NewCamera(
	samples, width, height int,
	vFov float64, lookFrom, lookAt, vUp r3.Vec,
	aperture, focusDist float64,
	img *image.RGBA,
) *Camera

func (*Camera) Sample

func (c *Camera) Sample(x, y int, rayColor RayColor)

type RayColor

type RayColor func(ray.Ray, int) r3.Vec

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL