Live demo: Simple Gradiated Triangles

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


This WebGL demo renders two triangles with each pair of vertices interpolating colors from one to the other. The purpose of this demo is to show how to build two VBO objects that are rendered by the same shader.