Class Material

A collection of textures that serve different purposes in the rendering pipeline.

Inherits from

Constructors

Name Description
this Default constructor, makes sure everything is initialized to default.

Fields

Name Type Description
diffuse Texture The diffuse (or color) map.
normal Texture The normal map, which specifies which way a face is pointing at a given pixel.
specular Texture The specular map, which specifies how shiny a given point is.
owner GameObject The GameObject that owns this component.
yaml dyaml.node.Node The node that defined the component.

Properties

Name Type Description
name [get] string
isUsed [get] bool
resource [get] Resource

Methods

Name Description
shutdown Shuts down the material, making sure all references are released.
draw Called on the draw cycle.
initialize The function called on initialization of the object.
refresh Called when refreshing an object.
update Called on the update cycle.

Authors

Copyright

License