updateCommonMaterialProperties method

void updateCommonMaterialProperties(
  1. Material material,
  2. dynamic parameters
)

Implementation

void updateCommonMaterialProperties(Material material, parameters) {
  var materialProperties = properties.get(material);

  materialProperties["outputEncoding"] = parameters.outputEncoding;
  materialProperties["instancing"] = parameters.instancing;
  materialProperties["skinning"] = parameters.skinning;
  materialProperties["morphTargets"] = parameters.morphTargets;
  materialProperties["morphNormals"] = parameters.morphNormals;
  materialProperties["morphColors"] = parameters.morphColors;
  materialProperties["morphTargetsCount"] = parameters.morphTargetsCount;
  materialProperties["numClippingPlanes"] = parameters.numClippingPlanes;
  materialProperties["numIntersection"] = parameters.numClipIntersection;
  materialProperties["vertexAlphas"] = parameters.vertexAlphas;
  materialProperties["vertexTangents"] = parameters.vertexTangents;
  materialProperties["toneMapping"] = parameters.toneMapping;
}