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
128 8. Bug-Free and Fast Mobile WebGL
what one would see on most mobile devices. e emulation carries a large performance
cost and may prevent very complex shaders from being compiled successfully, but is typi-
cally fast enough to run content targeting mobile platforms at interactive rates on the
desktop. Chrome 41 was the rst browser to expose this emulation through a command
line ag--emulate-shader-precision. You’ll nd more information on precision
emulation on the GitHub repository of WebGL Insights.
*
In the case of the example code, simply reducing the last coecient in the pseudoran-
dom function will make the shader work adequately in ...
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