cameras

package
v0.0.0-...-ec9fd1c Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2012 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cameras provides standard perspective and orthographic cameras.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOrthographic

func NewOrthographic(pos, look, up vec64.Vector, resx, resy int, aspect, scale float64) goray.Camera

NewOrthographic creates a new orthographic camera.

func NewPerspective

func NewPerspective(pos, look, up vec64.Vector,
	resx, resy int,
	aspect, focalDist, aperture float64,
	bokeh Bokeh, bias BokehBias, bokehRot float64) goray.Camera

NewPerspective creates a perspective camera. It will not lead you to enlightenment.

Types

type Bokeh

type Bokeh int

A Bokeh determines the shape of out-of-focus light.

const (
	Disk1    Bokeh = 0
	Disk2    Bokeh = 1
	Triangle Bokeh = 3
	Square   Bokeh = 4
	Pentagon Bokeh = 5
	Hexagon  Bokeh = 6
	Ring     Bokeh = 7
)

Bokeh shapes

type BokehBias

type BokehBias int
const (
	NoBias BokehBias = iota
	CenterBias
	EdgeBias
)

Jump to

Keyboard shortcuts

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