Hello. I imported a gltf model. I want to give the floor its reflection. I tried to do this with Reflection Probe but failed to reflect the gltf model.
my codes are like this
let groundMaterial = new BABYLON.StandardMaterial("Ground Material", scene);
ground.material = groundMaterial;
groundMaterial.roughness = 0;
groundMaterial.metallic = 0;
...
var model = BABYLON.SceneLoader.Append("", "model.gltf", scene, function (container) {
var meshes = container.meshes;
});
var probe = new BABYLON.ReflectionProbe("main", 512, scene);
probe.renderList.push(scene.getMeshByName("Plane004"));
" " " "... and others.
groundMaterial.reflectionTexture = probe.cubeTexture;
groundMaterial.reflectionFresnelParameters = new BABYLON.FresnelParameters();
groundMaterial.reflectionFresnelParameters.bias = 0.02;
groundMaterial.realTimeFiltering = true;
how can i solve this problem?