Material:getTexture

Returns a texture for a Material. Different types of textures are supported for different lighting parameters. If unset, textures default to a blank white texture.

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