ch7_Multitexture.htmlwith your choice of HTML editor.
var texture2 = null;
configurefunction, add the code to load the second texture. As mentioned earlier, we're using a class to make this process easier, so the new code is as follows:
texture2 = new Texture(); texture2.setImage('textures/light.png');
drawfunction, directly below the code that binds the first texture, add the following to expose the new texture to the shader: ...