-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
InstancedPointsNodeMaterial: Add sizeAttenuation #29491
base: dev
Are you sure you want to change the base?
InstancedPointsNodeMaterial: Add sizeAttenuation #29491
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
Sprites have a map, are sized in world units, can be size-attenuated, and can be rotated. Points are sized in pixels, and are just a "fat" point-list primitive. It doesn't make sense to size-attenuate something sized in pixels. |
Following numerous requests from developers, I'm attempting to offer a fallback solution to While I understand that in certain cases, like If you strongly believe that size attenuation is unnecessary for |
Thank you for your reply. I would be happy if:
If that is not acceptable for some reason, then an alternative could be to allow points to be sized in either pixels or world units -- but I prefer the solution above. JMHO, of course. If you disagree, I will not object. :-) |
Related issue: #29394 #29374
Description
Second attempt following #29374 to add support for sizeAttenuation in InstancedPointsNodeMaterial as a fallback for THREE.Points.
This contribution is funded by Segments.AI & Utsubo