MAIN
DEVELOPER
ENGINES
ABOUT
LINKS
FAQ
This sample demonstrates how lighting can be applied to 3D model. Every vertex of the cube model has two attributes: position and normal. The vertex shader calculates the color of the vertex using it's normal and global light direction.
<< 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.