I made two materials for a ball in Blender (just two color materials). I want to delete a reflectionTexture. I have one mesh. It means that the zero element in meshes must be a ball. I tried to find material array but autocomplete says that the ball has only one material. I try to print this material but I see null.
Your directional light does not work as expected because it has not a right direction: try -1 for the y axis instead of 1. You could also raise its intensity (light.intensity = 20 for eg).
I think the Blender exporter exports a PBR material because you use in Blender such a material (I think it is called “principled material” in Blender).
Here is a little warning about your way of getting the material : you are loading a glb file, in this case, babylon wrap your ball in a “_root_” mesh. So, your materials are not available on loadedScene.meshes[0] but from loadedScene.meshes[1] and loadedScene.meshes[2].
By the way, you’d better use https://doc.babylonjs.com/api/classes/babylon.scene#getmeshbyname to pick your mesh instead of using the index.
Do you mean to delete it in Blender? I use Blender 2.76 (because of performance of my laptop) in the “Blender Render” mode and I do not see “Metallic” and “Shininess” properties. Or do you mean to delete them in Babylon.js? But I cannot find where are materials as I described in the first message of my topic.
Good! Thank you! Now I see where materials are. But why do I see a gradient at the background color of the scene behind the ball when I rotate the camera?