godot-extended-libraries / godot-realistic-water

Godot - Realistic Water Shader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This shader can't tile when using tiled water plane

slapin opened this issue · comments

This shader can't tile when using tiled water plane. When tiled water plane is used, normal map values
are wrong for adjacent tiles which produces visible seams. Commenting out normalmap setting removes seams
but makes shader dull. Any ideas how to fix this?

Easy fix was adding vertex_position.xz as additional uv offset in normalmap samplers!

Hi @slapin ,
Can you explain a bit more?
Maybe you can show the updated line?

I am not very good at shaders yet and converting vertex_position to varying (to be able to read it in fragment) and adding it to the uv_ofset value just makes the normal map more dense.