WebGL Textures & Vertices
Page Seventy One
WebGL API bindTexture(Number, WebGLTexture)
the WebGL method
assigns the current texture to a target.
Only two options
exist for targets. Use either
The book's examples
However Seven Thunder Software's book
to generate a 3 dimensional environment.
Currently only pirated versions exist on the Web,
please don't download, pay for, or register for
Plans are in place to post the official free version here.
Until then, see
WebGL Skybox Examples
online and take a look at the source code.
The following listing assigns
gl.bindTexture ( gl.TEXTURE_2D, entity.texture );