Skip to Main Content
WebGL Insights
book

WebGL Insights

by Patrick Cozzi
August 2015
Intermediate to advanced content levelIntermediate to advanced
416 pages
16h 58m
English
A K Peters/CRC Press
Content preview from WebGL Insights
18311.4 Ocean Rendering
Reections are produced by ipping the original camera vertically and rendering the
needed objects to a new framebuer, which has a lower resolution for greater performance.
SSS simulation is based on light and camera directions and surface normals [Seymour 12].
ese simple calculations give us surprisingly realistic results.
Foam is inuenced by three major factors used for mixing with the original color:
1. High waves
2. Rolling waves with a normal close to the direction toward the shore
3. Depth-based foam on objects close to the surface of the water
11.4.4.1 High Waves Foam
When water mesh vertices reach a specic height, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

James L. Williams

Publisher Resources

ISBN: 9781498716079