Live demo: Snow Fall with Fog

Return to original post From OpenGl to WebGL - My first 3D demos in JavaScript

Description

This WebGL demo renders a lot of triangles that fall down like snow. Each flake turns and twists, and eventually fades away into a dark, thick fog. The purpose of this demo is to test my vertex shader that uses a vertex’s z position to determine how much to shade it.

Controls: m = more triangles, l = less triangles, r = rotate cloud