Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Material ¶
type Material struct { Props *vmt.Properties Textures struct { Albedo *textures.Texture Normal *textures.Texture // contains filtered or unexported fields } // contains filtered or unexported fields }
Material
func Load ¶
func Load(path string, fs *filesystem.Filesystem) (*Material, error)
func NewMaterial ¶
func NewMaterial(filePath string, props *vmt.Properties) (mat *Material)
func (*Material) EvictTextures ¶
func (mat *Material) EvictTextures()
func (*Material) FilePath ¶
FilePath returns this materials location in whatever filesystem it was found
func (*Material) G3nMaterial ¶
func (*Material) Height ¶
Height returns this materials height. Albedo is used to determine material height where possible
func (*Material) TextureLoaded ¶
func (mat *Material) TextureLoaded(ev *textures.TextureLoadedEvent)
Click to show internal directories.
Click to hide internal directories.