mtl

package
v0.0.0-...-b05aa3b Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(r io.Reader, filename string) (ms map[string]*Material, err error)

ParseMtl parse mtl format material file.

Types

type Material

type Material struct {
	Diffuse       [3]float32
	Ambient       [3]float32
	Specular      [3]float32
	Emissive      [3]float32
	SpecularPower float32
	Refraction    float32 // IOR Ni
	// Metallic   float32
	Alpha       float32
	RenderMode  uint32
	MapDiffuse  string
	MapSpecular string
	MapBump     string
	MapAlpha    string
}

Material is surface material

Jump to

Keyboard shortcuts

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