Skip to content

TEXT_LABELS not rendering when behind transparent mesh #373

@kurgut

Description

@kurgut

As you can see in the video below, I added a glass plane on the DSKY, in front of the flags indicators, and this causes the text labels to not be visible, depending on the angle. The glass mesh uses KSP/Alpha/Translucent Specular.

MAS.text.rendering.bug.mp4

@JonnyOThan mentioned that it could be because MAS uses Transparent shader, whereas JSILabel uses AlphaTest.
https://github.com/MOARdV/AvionicsSystems/blob/c9a8777e7a14d19667d93b17bf3fe2e2430bf68e/Assets/Shaders/TextMesh.shader#L48
https://github.com/JonnyOThan/RasterPropMonitor/blob/958720c1d9ad2145cacf5f5098d8984682f5e00e/Shaders/Assets/Shaders/RPM-JSILabel.shader#L28

Thank you

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