Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This shader can't tile when using tiled water plane #5

Open
slapin opened this issue Nov 13, 2021 · 2 comments
Open

This shader can't tile when using tiled water plane #5

slapin opened this issue Nov 13, 2021 · 2 comments

Comments

@slapin
Copy link

slapin commented Nov 13, 2021

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?

@slapin
Copy link
Author

slapin commented Nov 13, 2021

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

@starcin
Copy link

starcin commented Dec 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants