MackeyK24 Posted April 10, 2018 Share Posted April 10, 2018 Yo @Deltakosh and @Sebavan ... I need to some clarification on using ALPHATEST for BOTH PBRMaterial and StandardMaterial... Basically HOW do I specify that I want that material instance to use alpha testing AND I need to be able to specify the alpha cutoff per material... One material could have a alpha cutoff of 0.3 and another might have a 0.5 or something ... How do I use Alpha Testing With a Custom Cutoff Value ??? Thanks as always UPDATE: Delta added custom alphaCutoff value to the StandardMaterial ALPHATEST Thanks @Deltakosh As Always Quote Link to comment Share on other sites More sharing options...
Sebavan Posted April 10, 2018 Share Posted April 10, 2018 In PBR, you can rely on https://doc.babylonjs.com/api/classes/babylon.pbrmaterial#alphacutoff and https://doc.babylonjs.com/api/classes/babylon.pbrmaterial#transparencymode set to https://doc.babylonjs.com/api/classes/babylon.pbrmaterial#pbrmaterial_alphablend or https://doc.babylonjs.com/api/classes/babylon.pbrmaterial#pbrmaterial_alphatest or https://doc.babylonjs.com/api/classes/babylon.pbrmaterial#pbrmaterial_opaque Quote Link to comment Share on other sites More sharing options...
MackeyK24 Posted April 10, 2018 Author Share Posted April 10, 2018 2 hours ago, Sebavan said: In PBR, you can rely on https://doc.babylonjs.com/api/classes/babylon.pbrmaterial#alphacutoff and https://doc.babylonjs.com/api/classes/babylon.pbrmaterial#transparencymode set to https://doc.babylonjs.com/api/classes/babylon.pbrmaterial#pbrmaterial_alphablend or https://doc.babylonjs.com/api/classes/babylon.pbrmaterial#pbrmaterial_alphatest or https://doc.babylonjs.com/api/classes/babylon.pbrmaterial#pbrmaterial_opaque SWEET... Thanks @Sebavan Now how about Standard Material... How do we handle Alpha Cutoff In Standard Material ??? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2018 Share Posted April 10, 2018 We don't. The value is fixed to 0.4 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.