StandardMaterial constructor

StandardMaterial({
  1. Texture? albedoTexture,
  2. Color? albedoColor,
})

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);
}