ch7_Cubemap.htmlusing your HTML5 internet browser. Once again, this contains a simple textured cube example on top of which we'll build the cube map example. We want to use the cube map to create a reflective-looking surface.
loadCubemapFaceand has already been added to the
configurefunction. Below that function, add the following code which creates and loads the cube map faces:
cubeTexture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_CUBE_MAP, cubeTexture); gl.texParameteri(gl.TEXTURE_CUBE_MAP, ...