AvionicsSystems icon indicating copy to clipboard operation
AvionicsSystems copied to clipboard

TEXT_LABELS not rendering when behind transparent mesh

Open kurgut opened this issue 4 months ago • 1 comments

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.

https://github.com/MOARdV/AvionicsSystems/assets/39562611/357052fb-0862-4eb0-be38-e1a303d0c796

@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

kurgut avatar Feb 29 '24 21:02 kurgut