3D Graphics Display Here with WebGL. See Free

WebGL Tutorials

Change Textures with WebGL

Your browser doesn't support canvas.

Switch sampler2D Texture Unit

This example demonstrates one solution to quickly change textures. Load, initialize, and prepare more than one texture. While 3D content runs, simply switch the texture unit assigned to a sampler2D. Select the Change Texture button to map different images onto the square.

WebGL Beginner's Guide

The e-book WebGL Beginner's Guide provides a quick introduction to WebGL. Learn WebGL the easy way, with three simple projects, explanation, and code. WebGL Beginner' Guide covers the following features.

  1. Overall conceptual view of WebGL.
  2. Combine vertices to display a WebGL square.
  3. Load and texture map a square.
  4. Basic shader instructions, line by line.
  5. Interactively rotate and move a simple WebGL square.
  6. Repeat textures on a model without repeating vertices.
  7. Works with WebGL enabled Web browsers on iPhone, Androids, Windows PCs, and Macintosh computers.

More WebGL Beginner's Guide Projects:

Copyright © 2015 Seven Thunder Software. All Rights Reserved.