DepthTest disabled Billboard still blends with (alpha textured) background primitive
See original GitHub issueWe are using SVG images as image on a Billboard. To always render the Billboards on front we have set disableDepthTestDistance = Number.POSITIVE_INFINITY. It renders OK, except when a primitive with an alpha enabled material is positioned behind the Billboard. Then strange things happen where it seems white colors from the texture are made transparent, but other colors are not.

The given example is with Order Independent Transparency disabled, but also occurs with it enabled. In the example I have also reduced the number of frustums to 1, in order to eliminate causes related to multiple frustums, so this seems to not be the cause either.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
DepthTest disabled Billboard still blends with (alpha ... - GitHub
It renders OK, except when a primitive with an alpha enabled material is positioned behind the Billboard. Then strange things happen where ...
Read more >Blending - LearnOpenGL
This alpha value tells us exactly which parts of the texture have transparency and by ... the image shows the page's background color...
Read more >Scene - Cesium Documentation - Agi
Create scene without anisotropic texture filtering var scene = new Cesium. ... at which to disable the depth test of billboards, labels and...
Read more >Point as texture with depth test enabled - bugs, errors
I need alpha blending and depth test enalbed to place background ... is disabled) I get this error (texture is a png with...
Read more >Implementing depth testing for semi-transparent objects
The common solution here is alpha testing. Render the leaves as an opaque (not blended) quad (with a normal depth test and write),...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks for the workaround @SelimAbidin! I bet there’s still a bug somewhere on our end if that fixes the problem though.
@SelimAbidin that seems to be a nice workaround that works for us. Still some artifacts in some cases but it’s considerably better.