This demo shows the colored cube. Every cube vertex has it's color.
That color is smoothly interpolated on the faces of the cube using the very simple fragment shader.
Vertices use only two attributes: position and color, so the setup is easy.
<< back to another samples
[download source code]
IEWebGL is a plugin for Microsoft Internet Explorer web browser, that adds support
for WebGL - modern web 3D graphics standard.
If you like this project, you can support it by donations.
Your donations help us to implement new WebGL extensions and other features.
Copyright 2011 IEWebGL Team. All rights reserved.