
54 4. Getting Serious with JavaScript
in WebGL applications is the text plugin, which makes it easy to load a GLSL le into a
JavaScript string in order to pass it to the WebGL API. All the details can be found on the
RequireJS website.
4.2.2 AMD Alternatives
e Cesium team has had great success with AMD, and has found RequireJS to be a
robust and exible tool. We don’t hesitate to recommend its use in any serious applica-
tion. However, there are some valid criticisms of AMD, most of which boil down to a
distaste for its fundamental design goal: to create a module format that can be loaded in
web browsers without a build step and without any ...