Material:getScalar

Returns a numeric property of a Material. Scalar properties default to 1.0.

x = Material:getScalar(scalarType)

Arguments

NameTypeDescription
scalarTypeMaterialScalarThe type of property to get.

Returns

NameTypeDescription
xnumberThe value of the property.

See also