Aggiorna i parametri di materiale per il modello metallico e aggiungi supporto per lightMap
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 68 KiB |
@@ -217,10 +217,13 @@ export const addModelToScene = (obj, name, color, material_type) => {
|
||||
mesh.material.needsUpdate = true;
|
||||
|
||||
if(material_type == 'metal'){
|
||||
metalness = 0.86 ;
|
||||
roughness = 0.3;
|
||||
metalness = 0.86;
|
||||
roughness = 0.36;
|
||||
mesh.material.metalness = metalness;
|
||||
mesh.material.roughness = roughness;
|
||||
mesh.material.lightMap = lightMap;
|
||||
mesh.material.lightMapIntensity = 1;
|
||||
mesh.material.needsUpdate = true;
|
||||
}
|
||||
|
||||
if(material_type == 'transparent'){
|
||||
|
||||
Reference in New Issue
Block a user