StandardMaterial constructor
The standard material, it applies the albedoColor
to the albedoTexture
.
Implementation
StandardMaterial({
Texture? albedoTexture,
Color? albedoColor,
}) : albedoTexture = albedoTexture ?? Texture.standard,
_albedoColorCache = Vector4.zero(),
super(_library) {
this.albedoColor = albedoColor ?? const Color(0xFFFFFFFF);
}