WebGL Water / lightgl.js Copyright (c) 2011 Evan Wallace Original: https://madebyevan.com/webgl-water/ Source: https://github.com/evanw/webgl-water Source revision: 73eda8be832b649367b25ea5690c1f0181bb56ad Each reused source file declares release under the MIT license. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Kling Labs adaptation, 2026: Original GPU heightfield solver, raytraced pool, refraction, reflections, sphere shading and caustic projection retained. New Swedish interface, pointer controls, fixed-step scheduler, visibility handling, reset and presets. Renderer accepts generated tile textures and lower-cost previews; normal reconstruction and caustic division have numerical guards. The original photographs and Flickr tile texture are NOT redistributed. The tile material, cubemap and golf-ball material are generated procedurally by Kling Labs. The golf-ball coating includes 352 normal-mapped dimples and two opposed "Kling Labs" prints. The same material is sampled by the visible sphere and the water's reflected/refracted rays. Sphere physics and water displacement retain the original smooth-sphere approximation. Additional Kling Labs explorations: coherent point sources with optional opposite phase, a single-pass harmonic line source, prescribed sphere motion, light-elevation sweep, surface cutaway, slow motion and a simulation-time guided tour. These additions do not change the original wave-step equation. This is an educational graphics model, not a validated CFD solver or a calibrated radiometric simulation. The pool coordinates are dimensionless.