Use this code as a starting point for learning WebGL.
It contained approaches from ChatGPT, Claude, and Gemini.
It renders a triangle.
It uses vite.
I had to encourage Gemini to get it working, but the other two worked immediately.
-
clone the repo
-
cd
into one of the ai directories -
npm install
-
npm run dev
-
Open the browser at the specified localhost:port