Material:setScalar

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

Material:setScalar(scalarType, x)

Arguments

NameTypeDescription
scalarTypeMaterialScalarThe type of property to set.
xnumberThe value of the property.

Returns

Nothing

See also