MaterialΒΆ

Inherited: Resource

DescriptionΒΆ

Public MethodsΒΆ

MaterialInstance *

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

bool

doubleSided () const

int

layers () const

int

lightModel () const

int

materialType () const

int

priority () const

void

setDoubleSided (bool flag)

void

setLightModel (int model)

void

setMaterialType (int type)

void

setPriority (int priority)

int

uniformSize () 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().


int Material::priority () const

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

See also setPriority().


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

See also priority().


int Material::uniformSize () const

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