Open 6AKU66 opened 2 years ago
i dont think this is fixable without it being rendered on top of screen/units
would it be possible to render mex rings and the metal value above the water?
@Ruwetuin Maybe widget Highlight Selected Units GL4 have an answer for fixing this, since highlighting from that widget is not distorted by water.
I suggest to use wupdget:DrawWaterPost()
https://github.com/beyond-all-reason/spring/commit/107f98e1a3b705e9a2e2df23d3703a534163e374
The best result will likely be if you draw the same thing twice: once as before and once again on top with DrawWaterPost() (with lower alpha/intensity). This is how I was doing with outline widget.
Can you control the Y position of the text? If I understand correctly, the deeper the text is underwater, the stronger the effect. Could you set the Y pos to be a little under the water level for example to reduce the strength of the effect?
Then the text is offset compared to the ground (becomes more confusing as to where to click properly in some cases, etc)