material

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMaterial

type IMaterial interface {
	//Bind()
	Width() int
	Height() int
	FilePath() string
}

type Material

type Material struct {

	// ShaderName
	ShaderName string
	// Textures
	Textures struct {
		// Albedo
		Albedo texture.ITexture
		// Normal
		Normal texture.ITexture
	}
	// BaseTextureName
	BaseTextureName string
	// BumpMapName
	BumpMapName string
	// Properties
	Properties struct {
	}
	// contains filtered or unexported fields
}

Material

func NewMaterial added in v0.5.0

func NewMaterial(filePath string) *Material

func (*Material) FilePath

func (mat *Material) FilePath() string

FilePath returns this materials location in whatever filesystem it was found

func (*Material) Height

func (mat *Material) Height() int

Height returns this materials height. Albedo is used to determine material height where possible

func (*Material) Width

func (mat *Material) Width() int

Width returns this materials width. Albedo is used to determine material width where possible

Jump to

Keyboard shortcuts

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