InstancedPointsNodeMaterial: Add sizeAttenuation#29491
InstancedPointsNodeMaterial: Add sizeAttenuation#29491RenaudRohlinger wants to merge 5 commits intomrdoob:devfrom
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