WebGL Blue Triangle
Render a triangle with WebGL.
The right triangle's composed of three vertices.
Color's declared as a
vec4 representing red, green, blue and alpha channels.
Upload a uniform, representing color, to the fragment shader.
Basic WebGL Examples
- Display a triangle.
- Render a square plane.
- Interactively change colors on a square plane.
- Rotate a square.
- Animate two intersecting square planes.
- Animate, rotate, and dynamically change colors, on multiple square planes.