in Mesh.js
function initColorsAndMaterials
'len' shouble be nbVertices
if (!this._meshData._materialsPBR || this._meshData._materialsPBR.length !== len) {
var mAr = this._meshData._materialsPBR = new Float32Array(len);
for (i = 0; i < len; ++i) { <---------------- HERE
var j = i * 3;
mAr[j] = 0.18;
mAr[j + 1] = 0.08;
mAr[j + 2] = 1.0;
}
}
in Mesh.js function initColorsAndMaterials
'len' shouble be nbVertices
if (!this._meshData._materialsPBR || this._meshData._materialsPBR.length !== len) { var mAr = this._meshData._materialsPBR = new Float32Array(len); for (i = 0; i < len; ++i) { <---------------- HERE var j = i * 3; mAr[j] = 0.18; mAr[j + 1] = 0.08; mAr[j + 2] = 1.0; } }