Metal material to model

I try to add metal material to my model I export it from blender it have extension .babylon

var sphereMetal = BABYLON.SceneLoader.Append("./", "untitled.babylon", scene, function (scene) {});

var metal = new BABYLON.PBRMaterial("metal", scene);
            metal.reflectionTexture = hdrTexture;
            metal.microSurface = 0.96;
            metal.reflectivityColor = new BABYLON.Color3(0.85, 0.85, 0.85);
            metal.albedoColor = new BABYLON.Color3(0.01, 0.01, 0.01);
            sphereMetal.material = metal;

but it dont have any effect

You won’t get a mesh as a return value when calling BABYLON.SceneLoader.Append.

See:
https://doc.babylonjs.com/how_to/load_from_any_file_type#sceneloaderappend
https://www.babylonjs-playground.com/#WGZLGJ#0

1 Like

I do not see material.metallic. Microsurface is just about glosiness. Besides this, almost metals have higher color values.
Try PBRMetallicRoughnessMaterial, which provides simplified workflow.