Use the same values that are coming from the texture.

This commit is contained in:
kovacsv 2021-07-19 19:33:10 +02:00
parent 3f30909b2e
commit 7d013878fc

View File

@ -78,8 +78,8 @@ OV.ConvertModelToThreeMeshes = function (model, params, output, callbacks)
threeMaterial.metalness = material.metalness;
threeMaterial.roughness = material.roughness;
LoadTexture (threeMaterial, material.metallicMap, (threeTexture) => {
threeMaterial.metalness = 0.8;
threeMaterial.roughness = 0.8;
threeMaterial.metalness = 1.0;
threeMaterial.roughness = 1.0;
threeMaterial.metalnessMap = threeTexture;
threeMaterial.roughnessMap = threeTexture;
callbacks.onTextureLoaded ();