Water shows through blocks on custom shader
I added the dh_terrain.vsh and dh_terrain.fsh, LODs show up but water displays through blocks.

11 Replies
Instead of using
texture
(or texture2D
) to sample the texture, use textureLod
(or texture2DLod
) instead.If you need a reference on how to implement shaders for Distant Horizons, see this project that provide a reference implementation of it:
https://github.com/Null-MC/dh_tester
GitHub
GitHub - Null-MC/dh_tester: A simple shader for testing compatibili...
A simple shader for testing compatibility between Distant Horizons and Iris. - Null-MC/dh_tester
Thanks
lods are dark now though

You might have better luck asking in ShaderLabs DC server
They specialize in shader dev
For the initial problem, I remember some youtube tutorial saying that you just need to add manual depth check for water, though this might be already outdated or there might be better ways
ok
I fixed something and the bug has seemed to have flipped, now what do I fix next?

Huh, interesting.
And would an 11 month old totorial I found be of any use here? It showed how to integrate DH with shaders
people in the shaderlabs discord will be able to tell you
ok and I think I may have fixed it btw
yeah, It works now