You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to propose an alternative material setup for Alpha Coverage.
Max2Babylon currently uses the Transparency Weight in a Physical material to specify Alpha Coverage as a value or texture. This is incorrect for three reasons:
Transparency Weight uses values (white is clear, black is opaque) that are the inverse of the glTF standard for Alpha Coverage (white is opaque, black is clear).
Most pre-existing assets use the glTF standard. These assets must be manually inverted prior to use with Max2Babylon.
Alpha Coverage makes a surface fully transparent, while Transparency Weight in 3ds Max is more like glass as it preserves reflections etc.
I propose to use the Cutout input, as this solves all three issues. To supply a value instead of a texture, the user could connect an Output node and use the Output Amount spinner.
Transparency Weight could still be supported for legacy content, but the Cutout would be preferred as the new method. If both Transparency Weight and Cutout were present in the same model, Cutout would take precedence.
Ah, cool proposal, I agree that we don't want to remove previous support for transparency map, but adding support for the cutout map as an input seems to be more intuitive.
I'd like to propose an alternative material setup for Alpha Coverage.
Max2Babylon currently uses the Transparency Weight in a Physical material to specify Alpha Coverage as a value or texture. This is incorrect for three reasons:
I propose to use the Cutout input, as this solves all three issues. To supply a value instead of a texture, the user could connect an Output node and use the Output Amount spinner.
Transparency Weight could still be supported for legacy content, but the Cutout would be preferred as the new method. If both Transparency Weight and Cutout were present in the same model, Cutout would take precedence.
An example model to test with:
PhysicalMaterial_Cutout.zip
Texture is from the example model https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/AlphaBlendModeTest
What do you think?
The text was updated successfully, but these errors were encountered: