aik6980 / fj2021_game

i can dinosaur
0 stars 0 forks source link

Ocean surface improvement #1

Open aik6980 opened 3 years ago

aik6980 commented 3 years ago

https://godotshaders.com/shader/wind-waker-water-no-textures-needed/

I'm still trying to figuring out how to make this work with the surface on 3d sphere image

nekotogd commented 3 years ago

Hi @aik6980 ! Sorry for seeing this so late, I've been mostly busy with work at my uni.

The root of the issue lies with the UV mapping of a sphere which doesn't work very well. image

There's 2 main issues to solve:

I am currently working on both of these, here's a little progress picture: image image

However, I'm still having issues with the UV mapping: image

And also in order to solve the first issue of perfectly tiling the noise, I designed the noise in an external program and baked it into a texture. I will be releasing this as CC0 so you can use it without worries. However, it sadly no longer becomes "No Texture Needed" shader 😢

I'll attach the foam texture in case you want to experiment with it early: foam_mask

Also to fix the issue of the UVs I'm basically using the "Cube to Sphere" with each quad having the same UVs: image

So it should tile perfectly that way. However, there's still a few places where the UVs are messed up: image

Once I've fixed these issues, I'll be back here.