material

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 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
	GetFilePath() string
}

type Material

type Material struct {
	ShaderName string
	Textures   struct {
		Albedo texture.ITexture
		Normal texture.ITexture
	}
	FilePath        string
	BaseTextureName string
	BumpMapName     string
	Properties      struct {
	}
}

func (*Material) GetFilePath

func (mat *Material) GetFilePath() string

GetFilePath 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