MeshPhongMaterial constructor

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

Implementation

MeshPhongMaterial([Map<String, dynamic>? parameters]) : super() {
  bumpScale = 1;
  shininess = 30;
  specular = Color(0.067, 0.067, 0.067);
  color = Color(1, 1, 1); // diffuse

  type = "MeshPhongMaterial";
  emissive = Color(0, 0, 0);
  normalMapType = TangentSpaceNormalMap;
  normalScale = Vector2(1, 1);

  map = null;

  lightMap = null;
  lightMapIntensity = 1.0;

  aoMap = null;
  aoMapIntensity = 1.0;

  emissiveIntensity = 1.0;
  emissiveMap = null;

  normalMap = null;

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

  specularMap = null;

  alphaMap = null;

  // this.envMap = null;
  combine = MultiplyOperation;
  reflectivity = 1;
  refractionRatio = 0.98;

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

  fog = true;

  setValues(parameters);
}