Material:getTexture

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

texture = Material:getTexture(textureType)

Arguments

NameTypeDefaultDescription
textureTypeMaterialTexture'diffuse'The type of texture to get.

Returns

NameTypeDescription
textureTextureThe texture that is set, or nil if no texture is set.

See also