Versions in this module Expand all Collapse all v0 v0.1.0 Mar 14, 2019 Changes in this version + type Decoder struct + Materials map[string]*Material + Matlib string + Normals math32.ArrayF32 + Objects []Object + Uvs math32.ArrayF32 + Vertices math32.ArrayF32 + Warnings []string + func Decode(objpath string, mtlpath string) (*Decoder, error) + func DecodeReader(objreader, mtlreader io.Reader) (*Decoder, error) + func (dec *Decoder) NewGeometry(obj *Object) (*geometry.Geometry, error) + func (dec *Decoder) NewGroup() (*core.Node, error) + func (dec *Decoder) NewMesh(obj *Object) (*graphic.Mesh, error) + type Face struct + Material string + Normals []int + Smooth bool + Uvs []int + Vertices []int + type Material struct + Ambient math32.Color + Diffuse math32.Color + Emissive math32.Color + Illum int + MapKd string + Name string + Opacity float32 + Refraction float32 + Shininess float32 + Specular math32.Color + type Object struct + Faces []Face + Name string