4 ms·
in this case, with only 5 planes and one sphere, you can pass the whole scene into the shader as uniforms. If you have arbitrary scenes, you can hack around thi
by heeen 13y ago
in this case, with only 5 planes and one sphere, you can pass the whole scene into the shader as uniforms.
If you have arbitrary scenes, you can hack around this by estimating the water surface area where each triangle would be visible and then generate a water surface quadrilateral for each submerged triangle to raycast it.
http://www.youtube.com/watch?v=oWrUvJYzRlQ http://www.youtube.com/watch?v=oWrUvJYzRlQ