This is an implementation of the demos in Learn OpenGL using JavaScript (more specifically TypeScript) and WebGL 2.
This does not aim to be a one-for-one replication of the Learn OpenGL repository just in JavaScript. Instead, it is simply an attempt to learn graphics programming by going through the Learn OpenGL book.
N/B: You can download a PDF version of the contents of Learn OpenGL here
I intend to go through the following parts of the book:
This requires pnpm be installed on your system. Refer to the installation instructions if you don't have it.
You can optionally install Rust to run the application in a native window using Tauri.
Here are the steps:
git clone https://gitlab.com/learn-webgl-graphics-programming/graphics-with-webgl-svelte
Alternatively, you can download the repository's code in a zip file from the GitLab (or GitHub) website and extract it to a location of your choice.pnpm install
# For running the web application
pnpm dev
or: # To run the application in a native window
pnpm tauri dev
VS Code + Svelte + (optionally) Tauri and rust-analyzer.