Pointcloud Attenuation breaks alpha clipping

Hi! I’m using CesiumTileExcluder to only render a specific area of my map, like a table.

From this amazing PR I created a shader that modifies the fragment alpha value so everything outside the bounds of my specific area is not visible. This works fine if I’m using Pointclouds normally but once I enable the Attenuation boolean it breaks and renders regardless if it’s outside or not.

Does Attenuation use a different material than the 3DTiles opaqueMaterial? Or is that a bug?

Appreciate the help

Hi @JanikCodes,

It looks like you’re correct: it’s a bug (or a missing feature, at any rate) that custom materials aren’t used for attenuated point clouds. There’s a mention of this in the last comment in this issue:

1 Like

Ive replied to the issue. Having shader support for that would be amazing.