WebGL Sub Image from Array
Data from a procedural texture fills an array. Tap the canvas, to randomly modify the active texture with colors from the array.
to watch the maze fill with random tiles.
Tap the maze to fill the maze one random tile at a time.
The data for the sub image is generated with
WebGL Textures: Mipmaps, Sub Images & Atlases
See WebGL Texture examples covering the following topics.
- Sub Images from Texture Data
- Sub Images from Array Data
- Texture Atlases
Enjoy free WebGL tutorials. WebGL provides useful techniques for education, games, scientific visualization, and architectural rendering.
Online examples work with WebGL enabled Web browsers including Windows PCs, iPhone 6 and above, and current Androids. Most examples also work with Windows Phone operating system 8.1.