drake meme:

✋😒 fix bugs and create content
😎👉 f* around with water shader

@noio

Beautiful game, that shader looks amazing :O

@noio looking great. Mind sharing a little bit the techniques you’re employing here to render such lovely foam and strong wake? Any sdf’s?

@jaaprood
definitely!

The water mesh is baked at edit time, and I use an SDF to bake "distance to shore" into the vert colors.

There's Gerstner waves in the vertex shader

For the wake you're talking about: I run the classic "2D Water Ripple" effect (Hugo Elias) in a separate compute shader

There's also an invisble particle effect rendering into *another* buffer that tracks the car's "wind wake", mostly used for vegetation but also expresses as foam on the water!

@noio awesome, thanks for breaking that down for me. All makes a lot of sense, too. It’s great how multiple techniques can come together so well.