Function SpatialMaterial.setFeature
If true
, enables the specified feature
. Many features that are available in SpatialMaterial
s need to be enabled before use. This way the cost for using the feature is only incurred when specified. Features can also be enabled by setting the corresponding member to true
.
void setFeature
(
const(long) feature,
const(bool) enable
) nothrow @nogc;