marcelb / GodotSSRWater

Godot SSR Shader that also supports transparency and fake refraction
MIT License
46 stars 4 forks source link

In the editor, the water is drawn over gizmos. #4

Open darkhog opened 3 months ago

darkhog commented 3 months ago

See this:

obraz

The transformation gizmos are fine, but icons, grid lines and others are rendered under the water. On stock Godot it's an annoyance at worst, however some addons I use render the information on the icon layer, meaning that important stuff is hidden under the water and I have to hide the water mesh just to see it.

//edit: Camera frustum preview is affected as well:

as well as the 3d path editor stuff:

So even with stock Godot the problem is bad.

marcelb commented 2 months ago

Hey there! Thanks for reporting!

I always thought of this as a general Godot with custom shaders problem.

Anyway, I found a solution for now: Godot_v4 2 2-stable_win64_eZb5crp5wz

If you turn down the render priority of the gdshader on the water surface it works: Godot_v4 2 2-stable_win64_wV7hiNZrWX

I'm hesitant to push this to the repo just yet, because I don't know the side effects of this yet.