I tried to load my model into the babylon.js scene, but some textures are not rendering correctly like Glass material, I’ve even tried uploading the model into sandbox to check whether my model is having any but everything seems to be fine. I have attached the pictures of the model in sandbox and in the scene.
Yes, Skybox is already present.
Here is the code:
var skybox = BABYLON.MeshBuilder.CreateBox(
“skyBox”,
{ size: 5000.0 },
scene
);
var skyboxMaterial = new BABYLON.StandardMaterial(“skyBox”, scene);
skyboxMaterial.backFaceCulling = false;
skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture(
“./assets/environment.env”,
scene
);
skyboxMaterial.reflectionTexture.coordinatesMode =
BABYLON.Texture.SKYBOX_MODE;
skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);
skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
skybox.material = skyboxMaterial;
skybox.intensity = 10;