This example requires a browser that supports the HTML5 <canvas> feature.

Defining a Textured Cube from Scratch

Use this example as a template for designing your own custom geometry.

The source code will show you how to define position, texture coordinate and primitive index arrays, along with how to apply texture and material properties.


Log