ModelData:getMetalness

Returns the metalness factor of a material in the ModelData.

metalness = ModelData:getMetalness(index)

Arguments

NameTypeDescription
indexnumberThe index of the material.

Returns

NameTypeDescription
metalnessnumberThe metalness factor for the material, from 0.0 to 1.0.

See also