WebGL Repeat a Texture
Texture Mapped with a Lighthouse
Example for the E-Book
WebGL Textures & Vertices
Use WebGL texture repeat wrap mode settings to tile textures across surfaces. Simply increment the S and T coordinates to the number of tiles required. Then set texParameteri() to REPEAT.
Rotate button to play
the animation. The square plane rotates around the Y axis.
Tap the lighthouse to rotate one frame at a time.
WebGL Tutorials and Examples
- Useful techniques for education, games, scientific visualization, and architectural rendering.
- Works with WebGL enabled Web browsers including Windows PCs, iPhone 6, and current Androids. Most examples also work with Windows Phone operating system 8.1.