tuxalin / water-shader

Procedural water shader for general use.
MIT License
289 stars 26 forks source link

any help to get this to webgl? threejs #2

Open arpu opened 4 years ago

arpu commented 4 years ago

is it possible to use this shaders with webgl 2.0 and threejs ?

tuxalin commented 4 years ago

Yes, it should be possible to port it w/o too much work. I can try to setup a threejs demo with it.

arpu commented 4 years ago

this would be awesome!

arpu commented 3 years ago

@tuxalin any news on this :> ?

tuxalin commented 3 years ago

Sadly I didn't had much free time in the past months, but I do plan to port it one day.

arpu commented 3 years ago

testing some Foam water with THREE if this helps https://codesandbox.io/s/hungry-nash-zr8h7?file=/src/index.js

tuxalin commented 3 years ago

Thanks! That's actually quite helpful, will use it.

nhasdarjian commented 1 year ago

hey @tuxalin, I'm working on a procedural island generator in Three.js and I stumbled across this project while looking to upgrade my water. I have a system set up to load .glsl files, but I am not sure how to go about converting the SPIR-V .spv files to get the plain .glsl. Is there any chance that you'd be willing to upload the .glsl as plaintext? I'd be glad to share the result with you! Thanks :)

tuxalin commented 1 year ago

@nhasdarjian I've started working on this, converting to GLSL and adding threejs support, but due to work I didn't had much free time. Yes, I'll provide some GLSL files.

arpu commented 1 year ago

this is awesome! any plans to push it to a branch?

tuxalin commented 1 year ago

Sure, will do that. Wanted to get it to work first on threejs