SpaceToast Posted June 28, 2015 Share Posted June 28, 2015 Is there a method of altering the intensity of a bump map (normal map) from within Babylon.js? Something along the lines of: var bumpyMaterial = new BABYLON.StandardMaterial("bumpy", scene); bumpyMaterial.bumpTexture = new BABYLON.Texture("bumpy_normal_map.jpg", scene); bumpyMaterial.bumpTexture.alpha = 0.5; More generally I suppose, how would one fade a texture map of any kind during runtime? Quote Link to comment Share on other sites More sharing options...
RaananW Posted June 28, 2015 Share Posted June 28, 2015 All textures have a "level" variable, you can use it to slowly "fade in" the texture.bumpyMaterial.bumpTexture.level = 0.5; SpaceToast 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.