Re:WebGL Water Simulator
by JoshTriplett on Saturday January 10, 2015 @05:25PM
(#8868164)
Refraction definitely works; try moving the camera around, and you can see the effects of refraction on the ball.
[ Parent
| on HN ]
Re:WebGL Water Simulator
by josephpmay on Saturday January 10, 2015 @05:44PM
(#8868217)
It appears to work on the top but not on the sides
The sides seem to be a cut-away view, not a surface...
Re:WebGL Water Simulator
by JoshTriplett on Saturday January 10, 2015 @07:08PM
(#8868493)
Right. Refraction only occurs on the surface of the water, like the waves; the views through the sides are what you'd see from under the water at that point, not looking through a viewing window.
Well, if you want to get really technical, what you'd see from underwater would be much worse than what a camera sees, since your eyes require air to properly focus.
So if they wanted to make it what you would see underwater, they should just blur the crap out of it.