shadowmage45 / TUFX

Textures Unlimited Special Effects
Other
23 stars 9 forks source link

restock launch clamps don't render correctly in editor mode #39

Open JonnyOThan opened 11 months ago

JonnyOThan commented 11 months ago

This occurred when I replaced all the part shaders with the ones from parttools. Some details here: https://forum.kerbalspaceprogram.com/topic/182679-1123-restock-revamping-ksps-art-feb-25/?do=findComment&comment=4300920

Can anyone take a guess as to why my launch clamps render on the launchpad but not in the VAB? There was an old issue on Git from someone on OSX using OpenGL 3.3, I'm on Win 10 x64 running KSP 1.12.4 and I'm seeing the trusses on the pad.

In order to fix the "HDR transparency" issue, TUFX has to replace all the stock shaders with versions that clamp the alpha channel. Unfortunately there are also other slight differences in the shaders that result in artifacts like this. I'd bet the replacement doesn't support instancing...but I have no idea why that would only happen in the VAB unless restock doesn't use the instancing shader in the flight scene.

JonnyOThan commented 3 weeks ago

Possible fix?

you can also patch the launch clamp config to do instancingEnabled = false