Material:setTexture

Sets a texture for a Material. Several predefined MaterialTextures are supported. Any texture that is nil will use a single white pixel as a fallback.

Material:setTexture(textureType, texture)

Arguments

NameTypeDefaultDescription
textureTypeMaterialTexture'diffuse'The type of texture to set.
textureTextureThe texture to apply, or nil to use the default.

Returns

Nothing


Material:setTexture(texture)

Arguments

NameTypeDescription
textureTextureThe texture to apply, or nil to use the default.

Returns

Nothing

See also