Skip to content

Text not rendering when logarithmicDepthBuffer is enabled #4279

@Kershawj

Description

@Kershawj

Creating a scene with just a 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions