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 |
@@ -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'){
|
||||||
|
|||||||
Reference in New Issue
Block a user