material

package
v0.0.0-...-4f29a8f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 1 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 {
	Color           geom.Tuple4
	Emission        geom.Tuple4
	RefractiveIndex float64
	Reflectivity    float64
	Textured        bool
	TextureID       uint8
	TextureScaleX   float64
	TextureScaleY   float64
	TexturedNM      bool
	TextureIDNM     uint8
	TextureScaleXNM float64
	TextureScaleYNM float64
	IsEnvMap        bool
}

func NewDefaultMaterial

func NewDefaultMaterial() Material

func NewDiffuse

func NewDiffuse(r, g, b float64) Material

func NewGlass

func NewGlass() Material

func NewLightBulb

func NewLightBulb() Material

func NewMirror

func NewMirror() Material

type Mtl

type Mtl struct {
	Ambient         geom.Tuple4
	Diffuse         geom.Tuple4
	Specular        geom.Tuple4
	Shininess       float64
	Reflectivity    float64
	Transparency    float64
	RefractiveIndex float64
	Name            string
}

Mtl is a material from a WaveFront .mtl (.obj) file.

Jump to

Keyboard shortcuts

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