@galacean/engine-loader 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -2156,6 +2156,12 @@ var SceneParser$1 = /*#__PURE__*/ function(Parser1) {
2156
2156
  } else {
2157
2157
  var material = (materials == null ? void 0 : materials[materialIndex]) || SceneParser._getDefaultMaterial(engine);
2158
2158
  renderer.setMaterial(material);
2159
+ // Enable vertex color if mesh has COLOR_0 vertex element
2160
+ mesh.vertexElements.forEach(function(element) {
2161
+ if (element.semantic === "COLOR_0") {
2162
+ renderer.enableVertexColor = true;
2163
+ }
2164
+ });
2159
2165
  }
2160
2166
  var _gltfMeshPrimitives_i = gltfMeshPrimitives[i], _gltfMeshPrimitives_i_extensions = _gltfMeshPrimitives_i.extensions, extensions = _gltfMeshPrimitives_i_extensions === void 0 ? {} : _gltfMeshPrimitives_i_extensions;
2161
2167
  var KHR_materials_variants = extensions.KHR_materials_variants;