Aggiorna i parametri di materiale per il modello metallico e aggiungi supporto per lightMap

This commit is contained in:
2026-01-22 10:36:01 +01:00
parent e277f34a56
commit b4fb52617a
2 changed files with 5 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

@@ -218,9 +218,12 @@ export const addModelToScene = (obj, name, color, material_type) => {
if(material_type == 'metal'){ if(material_type == 'metal'){
metalness = 0.86; metalness = 0.86;
roughness = 0.3; roughness = 0.36;
mesh.material.metalness = metalness; mesh.material.metalness = metalness;
mesh.material.roughness = roughness; mesh.material.roughness = roughness;
mesh.material.lightMap = lightMap;
mesh.material.lightMapIntensity = 1;
mesh.material.needsUpdate = true;
} }
if(material_type == 'transparent'){ if(material_type == 'transparent'){