MOARdV / AvionicsSystems

MOARdV's Avionics Systems for Kerbal Space Program - a new generation of IVA enhancement.
Other
52 stars 26 forks source link

TEXT_LABELS not rendering when behind transparent mesh #373

Open kurgut opened 6 months ago

kurgut commented 6 months ago

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

JonnyOThan commented 6 months ago

Have you checked whether rpm has this issue? Would be a useful datapoint in confirming or contradicting my theory.