
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 coecient in the pseudoran-
dom function will make the shader work adequately in ...