Until now, we’ve focused heavily on the intricacies of rendering polygons with WebGL. In this chapter, we leave WebGL and its complex syntax of buffers and attributes and uniforms behind. In its place we will use an open source 3D graphics library written in JavaScript called Three.js.
The exercise in this chapter is broken up into three parts. Part 1 addresses just some of the ways Three.js sits atop WebGL to make more convenient many of the basic operations essential to creating the bedrock of a 3D scene. Part 2 introduces the tools Three.js provides to easily create more detailed ...