-
-
Notifications
You must be signed in to change notification settings - Fork 35.8k
NodeMaterial: Introduce .maskNode
and improve shapeCircle()
#31127
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.
|
material.opacityNode = shapeCircle(); | ||
material.alphaToCoverage = true; | ||
material.transparent = true; |
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.
Do we need alphaToCoverage
when we are using opacityNode
?
How's |
The circle that
|
…ob#31127) * always check `alphaTest` but optimize uniform to constant if necessary * Introduce `.maskNode` * improve `shapeCircle` * `webgpu_compute_particles`: use `shapeCirle()`
…ob#31127) * always check `alphaTest` but optimize uniform to constant if necessary * Introduce `.maskNode` * improve `shapeCircle` * `webgpu_compute_particles`: use `shapeCirle()`
Related issue: #31092
Description
Introduce
.maskNode
as was done in the old NodeMaterial, this simplifies the use ofalphaTest
for procedural purposes sincealphaTestNode
needs to deal with the current opacity..maskNode
.alphaTest
but optimize uniform to constant if necessaryshapeCircle()