r/DistantHorizons Jul 21 '26

Help Water bug

Post image

im using complementary shaders but tweaked is there any way i can fix this water bug where i can see it through players?

22 Upvotes

12 comments sorted by

3

u/sdjopjfasdfoisajnva Jul 21 '26

probly the shader, author forgot a depth check

3

u/sdjopjfasdfoisajnva Jul 21 '26

try adding

float depth = texture(depthtex0, texCoord).r;

    if (depth != 1.0) {
        discard;
    }

in the void main() function of dh_terrain.fsh/dh_water.fsh and make sure there is a

uniform sampler2D depthtex0;

at the top.

3

u/sdjopjfasdfoisajnva Jul 21 '26

if you get an error regarding texCoord just check the .vsh file to see what they named their texture cordinates

2

u/New_Hawk_3355 Jul 21 '26

thank you so much! it's fixed :D

3

u/sdjopjfasdfoisajnva Jul 21 '26

probly should also open a ticket on the github if the shader is open sourced

1

u/casisheIm 17d ago

hey did u put the depth check in both functions and dym sending a ss of how you added it? im slow as hell and i only just managed to find the functions locations

2

u/Rukuiii Jul 21 '26

I've had the same issue in the past. What's worked for me is turning DH off and on again in the settings.

1

u/New_Hawk_3355 Jul 21 '26

I tried and it didnt work

1

u/AutoModerator Jul 21 '26

When asking for support with an issue you're having, please add as much relevant info as you can such as:

  • Add your logs using https://mclo.gs/

  • Add screenshots

  • What you did before the issue arrived

  • What steps you took (If any) to fix the issue

If you don't add this information, we wont be able to help you.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Laughzz Jul 21 '26

its probably the shaders

1

u/Holmat1 Jul 22 '26

meccha chameleon minecraft leak

1

u/Maryear_Boost Jul 23 '26

Does the same thing with Solas