Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Proc ¶
type Proc struct { NodeDef core.NodeDef `node:"-"` NodeName string `node:"Name"` Handler string DataString string `node:"Data"` Userdata interface{} `node:"-"` Geom []core.Geom `node:"-"` Shader []core.Shader `node:"-"` BMin param.PointArray BMax param.PointArray Transform param.MatrixArray `node:",opt"` // contains filtered or unexported fields }
Proc supports procedural loading/generation of geometry via handlers. Handlers may create Geom or Shader nodes.
func (*Proc) Bounds ¶
func (proc *Proc) Bounds(time float32) m.BoundingBox
Bounds implements core.Geom.
func (*Proc) MotionKeys ¶
MotionKeys returns the number of motion keys.
type TransformSRTArray ¶
type TransformSRTArray []m.TransformDecomp
TransformSRTArray is an array of Transforms supporting lerp.
func (*TransformSRTArray) TimeKey ¶
func (t *TransformSRTArray) TimeKey(time float32) m.TransformDecomp
TimeKey returns the interpolated transform from the array (whole array is assumed to cover [0,1) linearly. This should be altered to allow time to be non-linearly related to the keys.
Click to show internal directories.
Click to hide internal directories.