Changes var to const

This commit is contained in:
Janusz Bossy 2020-07-07 15:53:23 +02:00
parent 573cdc244f
commit 4251c8491c

View File

@ -68,7 +68,7 @@ function loadMtl(mtlPath, options) {
};
function createMaterial(name) {
var materialOverrides = options.materialOverrides[name] || {};
const materialOverrides = options.materialOverrides[name] || {};
material = new Material();
material.name = name;
material.specularShininess = options.metallicRoughness ? 1.0 : 0.0;