Could someone help me on this challenge I am struggling with:
I want to use scene.pickPosition to pick position only if alpha-value is lower than 0.3. So any “too transparent” result should be ignored.
I see “alpha cut off” type implementation in the source code, but do not really understand could I utilize it for this task… It would be fine to modify some GLSL shader globally to render pickDepthBuffer like this, but I don’t seem to find the right place to edit the code.
This is how I pick now:
scene.pickTranslucentDepth = true;
// TODO: Setup something here to discard fragments where color.a < 0.3
I think that depends on what type of content is in your 3D Tiles. For example, if you’ve got buildings that are b3dm, then they’ll be created as Batched3DModelTileContent: