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.
No description
11 Replies
hardester
hardester5mo ago
Instead of using texture (or texture2D) to sample the texture, use textureLod (or texture2DLod) instead.
hardester
hardester5mo ago
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
Terravolt
TerravoltOP5mo ago
Thanks
Terravolt
TerravoltOP5mo ago
lods are dark now though
No description
Miki_P98
Miki_P985mo ago
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
Terravolt
TerravoltOP5mo ago
ok
Terravolt
TerravoltOP5mo ago
I fixed something and the bug has seemed to have flipped, now what do I fix next?
No description
hardester
hardester5mo ago
Huh, interesting.
Terravolt
TerravoltOP5mo ago
And would an 11 month old totorial I found be of any use here? It showed how to integrate DH with shaders
Puhpine
Puhpine5mo ago
people in the shaderlabs discord will be able to tell you
Terravolt
TerravoltOP5mo ago
ok and I think I may have fixed it btw yeah, It works now

Did you find this page helpful?