Bhupi Posted January 17, 2017 Share Posted January 17, 2017 Hi. I want to attach a standard material and a reflective texture on the same surface. I have jpg's for both. I tried to use multi-material: var ematerial = new BABYLON.StandardMaterial("wall_wood", scene); ematerial.emissiveTexture = new BABYLON.Texture("wall_wood.jpg", scene); var rmaterial = new BABYLON.Texture("wall_wood_r", scene); rmaterial.reflectionTexture = new BABYLON.Texture("wall_wood_r.jpg", scene); rmaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.PLANAR_MODE; var multimat = new BABYLON.MultiMaterial("multimat", scene); multimat.subMaterials.push(ematerial); multimat.subMaterials.push(rmaterial); mesh.material = multimat; This did not work as expected. How can I achieve this? Is custom shader the way to go? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.