ModelData:getDiffuseTexture

Returns the diffuse texture of a material in the ModelData.

texture = ModelData:getDiffuseTexture(index)

Arguments

NameTypeDescription
indexnumberThe index of the material.

Returns

NameTypeDescription
textureTextureDataThe diffuse texture data.

See also