Material

Inherited: None

Description

Public Methods

MaterialInstance *

createInstance (Material::SurfaceType type = SurfaceType::Static)

bool

doubleSided () const

int

layers () const

int

lightModel () const

int

materialType () const

void

setDoubleSided (bool flag)

void

setLightModel (int model)

void

setMaterialType (int type)

void

setPriority (int priority)

void

setWireframe (bool wireframe)

int

uniformSize () const

bool

wireframe () const

Static Methods

None

Methods Description

MaterialInstance * Material::createInstance (Material::SurfaceType type = SurfaceType::Static)

Returns a new instance for the material with the provided surface type.


bool Material::doubleSided () const

Returns true if mas marked as double-sided; otherwise returns false.

See also setDoubleSided().


int Material::layers () const

Returns layers that supported by this material.


int Material::lightModel () const

Returns current light model for the material. For more detalse please refer to Material::LightModelType enum.

See also setLightModel().


int Material::materialType () const

Returns current material type. For more detalse please refer to Material::Type enum.

See also setMaterialType().


void Material::setDoubleSided (bool flag)

Enables or disables the double-sided flag for the material.

See also doubleSided().


void Material::setLightModel (int model)

Sets a new light model for the material. For more detalse please refer to Material::LightModelType enum.

See also lightModel().


void Material::setMaterialType (int type)

Sets new material type. For more detalse please refer to Material::Type enum.

See also materialType().


void Material::setPriority (int priority)

Sets a rendering priority for the material. This parameter is used alpha rendering sorting


void Material::setWireframe (bool wireframe)

Enables or disables a wireframe mode for the material.

See also wireframe().


int Material::uniformSize () const

Returns size uniform buffer for single instance. This value can be used as stride for instances.


bool Material::wireframe () const

Returns true if material must be rendered as wireframe.

See also setWireframe().