Get to know MDN better
This WebGL example demonstrates how to combine shader programming and user interaction by sending user input to the shader using vertex attributes.
How to send input to a shader program by saving data in GPU memory.
The source code of this example is also available on GitHub.
This page was last modified on Sep 19, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.