Use the same values that are coming from the texture.
This commit is contained in:
parent
3f30909b2e
commit
7d013878fc
@ -78,8 +78,8 @@ OV.ConvertModelToThreeMeshes = function (model, params, output, callbacks)
|
|||||||
threeMaterial.metalness = material.metalness;
|
threeMaterial.metalness = material.metalness;
|
||||||
threeMaterial.roughness = material.roughness;
|
threeMaterial.roughness = material.roughness;
|
||||||
LoadTexture (threeMaterial, material.metallicMap, (threeTexture) => {
|
LoadTexture (threeMaterial, material.metallicMap, (threeTexture) => {
|
||||||
threeMaterial.metalness = 0.8;
|
threeMaterial.metalness = 1.0;
|
||||||
threeMaterial.roughness = 0.8;
|
threeMaterial.roughness = 1.0;
|
||||||
threeMaterial.metalnessMap = threeTexture;
|
threeMaterial.metalnessMap = threeTexture;
|
||||||
threeMaterial.roughnessMap = threeTexture;
|
threeMaterial.roughnessMap = threeTexture;
|
||||||
callbacks.onTextureLoaded ();
|
callbacks.onTextureLoaded ();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user