Pass:setMaterial

Sets the material. This will apply to most drawing, except for text, skyboxes, and models, which use their own materials.


Pass:setMaterial(material)

Arguments

NameTypeDescription
materialMaterial The material to use for drawing.

Returns

Nothing


Pass:setMaterial(texture)

Arguments

NameTypeDescription
textureTexture The texture to use as the material.

Returns

Nothing


Use the default material.

Pass:setMaterial()

Arguments

None

Returns

Nothing

See also