Chapter 10. Advanced Techniques

At this point, you have all the information you need to create rich 3D applications with WebGL. However, we've only just scratched the surface of what's possible with the API! Creative use of shaders, textures, and vertex attributes can yield fantastic results. The possibilities are, literally, limitless! In this final chapter, we'll provide a few glimpses into some advanced WebGL techniques, and hopefully leave you eager to explore more on your own.

In this chapter, we'll learn the following topics:

  • Post-process effects
  • Point sprites
  • Normal mapping
  • Ray tracing in fragment shaders


Post-processing effects are the effects that are created by re-rendering the image of the scene with a shader that alters ...

Get WebGL Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.