Game Development Reference
In-Depth Information
Chapter 7
Beginning WebGL
WebGL (Web-based Graphics Language) is a very exciting new technology that leverages the power of
the Graphics Processing Unit (GPU) within the browser.
In this chapter, we will discuss the history and capabilities of WebGL. As a prerequisite to programming
games with WebGL, we need to cover the following:
checking for WebGL support
working within a 3D coordinate system
the WebGL graphics pipeline and GLSL (GL Shading Language) basics
using buffers and drawing basic shapes
setting up world view and projection matrices
animating a 3D object
enabling depth testing
using a texture
Near the end of the chapter, we will present a simple game of darts. The techniques covered in this
chapter will also enable us to progress to the more advanced topics covered in the Cycleblob games
chapter. There is a lot to cover in one chapter, so let's get started!
 
Search WWH ::




Custom Search