Live demo: Textured Cube

Return to original post From OpenGl to WebGL - My first 3D demos in JavaScript

Description

This WebGL demo renders a spinning cube with an old school Super Mario Brothers texture on it. The purpose of this demo was for me to learn the ways of WebGL textures. One thing I learned after 1 hour of debugging is this: the width and height of your texture file must be a power of 2.