IEWebGL - WebGL for Internet Explorer

Texturing Sample

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. The fragment shader uses interpolated texture coordinates to sample a texture map, that is loaded using JavaScript Image object.

<< 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.

Download IEWebGL

If you are a commercial WebGL-developer and you want to use IEWebGL on your site, press the button below.

Buy commercial license