-
-
Notifications
You must be signed in to change notification settings - Fork 36k
NodeMaterial: Cleanup alphaTest
#31147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
|
||
diffuseColor.a.assign( 1.0 ); | ||
|
||
} else if ( alphaTestNode === null ) { | ||
|
||
diffuseColor.a.lessThanEqual( 0 ).discard(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this experimentally, to do alphaTest
on non-opaque materials even if material.alphaTest
is not greater than zero. It may help with performance, but if not we can remove it. /cc @Mugen87
* NodeMaterial: Cleanup `alphaTest` * cleanup * cleanup * cleanup
* NodeMaterial: Cleanup `alphaTest` * cleanup * cleanup * cleanup
Related issue: #31127
Description
It maintains the logic of the previous PR but with some revisions.