Thema Posted August 15, 2017 Share Posted August 15, 2017 Does the PBR material have an Alpha Map Texture? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 15, 2017 Share Posted August 15, 2017 Yes you can define an opacity texture with pbr.opacityTexture Quote Link to comment Share on other sites More sharing options...
Thema Posted August 15, 2017 Author Share Posted August 15, 2017 Do you have any examples or documentation about the pbr.opacityTexture? Quote Link to comment Share on other sites More sharing options...
Thema Posted August 15, 2017 Author Share Posted August 15, 2017 I did a playground with the opacityTexture that i cannot make it work correctly: https://www.babylonjs-playground.com/#4R46SR Could you please give a look to it? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 15, 2017 Share Posted August 15, 2017 ping @Sebavan Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 15, 2017 Share Posted August 15, 2017 Hello, You are trying to rely on opacity from rgb and did not set the according flag on the texture: mymaterial.opacityTexture.getAlphaFromRGB = true; https://www.babylonjs-playground.com/#4R46SR#1 Quote Link to comment Share on other sites More sharing options...
Thema Posted August 15, 2017 Author Share Posted August 15, 2017 Thank you, is working great now. 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.