obj

package
v0.0.0-...-697b985 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: BSD-3-Clause, Zlib Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Material

type Material struct {
	Name           string
	Colors         [3]f64.Vec3
	SpecularFactor float64
	DissolveFactor float64
	Illumination   int
	Texture        struct {
		Displacement    *Texture
		Diffuse         *Texture
		Ambient         *Texture
		SpecularColor   *Texture
		SpecularHilight *Texture
		Alpha           *Texture
		Bump            *Texture
		Dissolve        *Texture
	}
}

type Model

type Model struct {
	Verts   []f64.Vec4
	Coords  []f64.Vec4
	Normals []f64.Vec4
	Faces   [][3][3]int
	Mats    []Material
}

func Load

func Load(name string, r io.Reader) (*Model, error)

type Texture

type Texture struct {
	Blend       [2]bool
	MipmapBoost float64
	Origin      f64.Vec3
	Scale       f64.Vec3
	Turbulence  f64.Vec3
	Clamp       bool
	BumpFactor  bool
	IMF         uint64
	Map         *image.RGBA
}

Jump to

Keyboard shortcuts

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