LOGIN / REGISTER
This sample shows how texture can be loaded and applied to 3D model. Every vertex of the cube model has now three attributes: position, normal and texture coordinates.
The vertex shader calculates the lighting using normal and global light direction, it also pass texture coordinates to fragment shader.
<< 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 are a commercial WebGL-developer and you want to use IEWebGL on your site,
press the button below.
Copyright 2011 IEWebGL Team. All rights reserved.