Material:getTexture
Returns a texture for a Material. Several predefined MaterialTexture
s are supported. Any texture that is nil
will use a single white pixel as a fallback.
texture = Material:getTexture(textureType)
Arguments
Name | Type | Default | Description |
textureType | MaterialTexture | 'diffuse' | The type of texture to get. |
Returns
Name | Type | Description |
texture | Texture | The texture that is set, or nil if no texture is set.
|
See also
MaterialTexture
Material:setTexture
Material