MeshStandardMaterial constructor

MeshStandardMaterial([
  1. Map<String, dynamic>? parameters
])

Implementation

MeshStandardMaterial([Map<String, dynamic>? parameters]) : super() {
  type = "MeshStandardMaterial";
  roughness = 1.0;
  metalness = 0.0;
  bumpScale = 1.0;
  normalScale = Vector2(1, 1);
  envMapIntensity = 1.0;

  defines = {'STANDARD': ''};

  color = Color.fromHex(0xffffff); // diffuse
  roughness = 1.0;
  metalness = 0.0;

  map = null;

  lightMap = null;
  lightMapIntensity = 1.0;

  aoMap = null;
  aoMapIntensity = 1.0;

  emissive = Color.fromHex(0x000000);
  emissiveIntensity = 1.0;
  emissiveMap = null;

  bumpMap = null;
  bumpScale = 1;

  normalMap = null;
  normalMapType = TangentSpaceNormalMap;
  normalScale = Vector2(1, 1);

  displacementMap = null;
  displacementScale = 1;
  displacementBias = 0;

  roughnessMap = null;

  metalnessMap = null;

  alphaMap = null;

  // this.envMap = null;
  envMapIntensity = 1.0;

  wireframe = false;
  wireframeLinewidth = 1;
  wireframeLinecap = 'round';
  wireframeLinejoin = 'round';

  fog = true;

  setValues(parameters);
}