Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Camera ¶
type Camera struct { NodeDef core.NodeDef `node:"-"` NodeName string `node:"Name"` Type string // 'lookat' 'matrix' From param.PointArray // eye point Target param.PointArray `node:"To"` Roll param.Float32Array // rotation around z axis Up m.Vec3 U, V, W m.Vec3 `node:"-"` // orthonormal basis Aspect float32 `node:",opt"` // aspect ratio Fov float32 `node:",opt"` // field of view (X), Y is calculated from aspect Focal float32 `node:",opt"` // focal length WorldToLocal param.MatrixArray `node:",opt"` LocalToWorld param.MatrixArray `node:",opt"` TanThetaFocal float32 `node:"-"` // = tan(Fov/2)*Focal L, R, T, B float32 `node:",opt"` Radius float32 `node:",opt"` // contains filtered or unexported fields }
The Camera node represents a 3D camera, it can be specified as a 'lookat' or matrix and may have motion keys for its parameters.
func (*Camera) ComputeRay ¶
ComputeRay calculates a position and direction for a sampled ray. x,y are the raster position, lensU,lensV are in [0,1)x[0,1)
Click to show internal directories.
Click to hide internal directories.