O'Reilly logo

WebGL Game Development by Sumeet Arora

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Colors and Shading Languages

We have been teleported to 5000 AD. We know the basics, but we still have to create our survival kit to fight Mr. Green. Our survival kit's raw materials will be some basic code packets. These code packets will form the core rendering engine of our WebGL game. Although we will take the simplest approach, we will keep evolving and structuring these particular code packets as we move along.

Before we dive into shading models, we will cover how to render complex geometries. A very important aspect of 3D gaming is the ability to render 3D models exported from tools such as Blender. We will learn how to export basic 3D models and also understand the basic Wavefront OBJ file format. We will learn how to parse the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required