Pass:setMaterial

Edit

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




Arguments

NameTypeDescription
materialMaterial The material to use for drawing.

Returns

Nothing

Arguments

NameTypeDescription
textureTexture The texture to use as the material.

Returns

Nothing

Use the default material.

Arguments

None

Returns

Nothing

See also