Vertices on a plane are adjusted from shader code and buffers! Used a wave approximation function with a mouse click.
thanks!
Vertices on a plane are adjusted from shader code and buffers! Used a wave approximation function with a mouse click.
thanks!
I like how the wavefronts get reflected from the plane’s boundary and then superimpose with the generating waves
Thanks! I was happy with the reflection or boundary conditions as well. I think it’s numerically similar to a wave in an infinite well, or like water splashing against the side of a pool. But I might be wrong. It’s also the result of letting texture2D
from the shader just do its thing. Any other boundary conditions would require indexing the pixels, which wouldn’t be as straightforward.