Good afternoon. Today I was given a glb of an engine part. The artist added a cutout texture to the model. When I load it into my BJS scene, the engine has a transparent/ghost-like appearance. I thought adding backfaceCulling = false and hasAlpha = true would solve this but no luck. Here's my code below:
var myEngine = BABYLON.SceneLoader.ImportMesh("", "models/", "2.glb", scene, function (newMeshes) {
myEngine = newMeshes[0];
myEngine.material.backFaceCulling = false;
myEngine.material.hasAlpha = true;
});
Do I have to create a new material and add it to the glb like in this playground?
http://www.babylonjs-playground.com/#YDO1F#18
Here is an image of the engine:
Thanks,
Dave