Repository navigation
webg 3.0 is a major release of a self-contained JavaScript and WebGPU library for building 3D applications.
Highlights
- Application architecture: Build applications with
WebgAppand the low-level scene APIs, or useWebgSceneAppwith SceneYAML and ModelYAML. - Physically based rendering: Create materials with PBR, HDR environment lighting, image-based lighting, and transparent refraction.
- Water and visual effects: Add animated water surfaces, caustics, shadows, reflections, fog, bloom, and depth of field.
- CPU and GPU physics: Choose
PhysicsSpaceorComputePhysicsSpacefor rigid-body simulation, contacts, sleeping, and joints. - GPU-driven applications: Use Compute Shaders for particles, cloth, texture generation, and other GPU workloads.
- Runnable learning resources: Explore the Japanese and English books, chapter examples, and integrated sample applications.
Get started
Clone the repository and serve it over localhost:
git clone https://github.com/jun-mizutani/webg.git
cd webg
python3 -m http.server 8000