ModelData:getRoughness

Returns the roughness factor of a material in the ModelData.

roughness = ModelData:getRoughness(index)

Arguments

NameTypeDescription
indexnumberThe index of the material.

Returns

NameTypeDescription
roughnessnumberThe roughness factor for the material, from 0.0 to 1.0.

See also