Documentation ¶
Index ¶
- type PolyMesh
- func (mesh *PolyMesh) Bounds(time float32) m.BoundingBox
- func (mesh *PolyMesh) Def() core.NodeDef
- func (mesh *PolyMesh) MotionKeys() int
- func (mesh *PolyMesh) Name() string
- func (mesh *PolyMesh) PostRender() error
- func (mesh *PolyMesh) PreRender() error
- func (mesh *PolyMesh) Trace(ray *core.Ray, sg *core.ShaderContext) bool
- func (mesh *PolyMesh) TraceElems(ray *core.Ray, sg *core.ShaderContext, base, count int) bool
- func (mesh *PolyMesh) TraceMotionElems(time float32, key, key2 int, ray *core.Ray, sg *core.ShaderContext, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolyMesh ¶
type PolyMesh struct { NodeDef core.NodeDef `node:"-"` NodeName string `node:"Name"` RayBias float32 `node:",opt"` Verts param.PointArray PolyCount []int32 `node:",opt"` FaceIdx []int32 `node:",opt"` Shader []string ShaderIdx []int32 `node:",opt"` CalcNormals bool `node:",opt"` IsVisible bool `node:",opt"` Transform param.MatrixArray `node:",opt"` UV param.Vec2Array `node:",opt"` UVIdx []int32 `node:",opt"` Normals param.Vec3Array `node:",opt"` NormalIdx []int32 `node:",opt"` // contains filtered or unexported fields }
PolyMesh is the main polygon mesh type in Vermeer.
func (*PolyMesh) Bounds ¶
func (mesh *PolyMesh) Bounds(time float32) m.BoundingBox
Bounds implements core.Geom.
func (*PolyMesh) MotionKeys ¶
MotionKeys returns the number of motion keys.
func (*PolyMesh) PostRender ¶
PostRender is a core.Node method.
func (*PolyMesh) TraceElems ¶
TraceElems implements qbvh.Primitive. /go:nosplit
Click to show internal directories.
Click to hide internal directories.