Text not rendering when logarithmicDepthBuffer is enabled
See original GitHub issueCreating a scene with just a <a-text> entity in but then using logarithmicDepthBuffer set to true in the renderer settings works fine so like:
<a-scene renderer="logarithmicDepthBuffer: true;"> <a-text value="Some text please" color="black" position="0 0 -5"></a-text> </a-scene>
However adding a plane behind the text whilst logarithmicDepthBuffer set to true causes text to not render over the plane.
<a-scene renderer="logarithmicDepthBuffer: true;"> <a-plane height="1" width="3" color="red" position="0 0 -5.2"></a-plane> <a-text value="Some text please" color="black" position="0 0 -5"></a-text> </a-scene>
Switching to logarithmicDepthBuffer: false;
then works as expected.
I have a scene which really needs this set to true for lots of other entities to render correctly and to reduce z-fighting but also need some generated text in there so I’m kinda stuck.
I’m guessing the text shader isn’t aware of how to handle this correctly?
- A-Frame Version: 0.9.2
- Platform / Device: Chrome/Macbook
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (5 by maintainers)
Top GitHub Comments
Thank you @arpu, works like a charm
@dzoech meantime you can try/use https://github.com/lojjic/aframe-troika-text