Skip to main content
100%

regl-demo

✓ Published0🌍 Public
11wheel
Last edited Mar 17, 2017
Created on Mar 17, 2017

A WebGL triangle rendered with regl animates its background color in a smooth, time-based loop. The vertex shader derives the triangle’s fragment color from its position attributes, producing a gradient across the shape. The example uses `regl.frame` for continuous rendering and `regl.clear` to update the background, demonstrating basic GLSL shader setup and attribute passing with the regl API.

AI-generated description

Similar vizzes