New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Comprehensive Three.js guide for building WebGL and WebGPU scenes with cameras, lights, materials, and loaders.

skills.sh installs
5.3K
GitHub stars
1.4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers scene graph architecture, the core components (scene, camera, renderer, geometry, material, mesh), and quick-start setups for WebGL and WebGPU
  • Includes patterns for textured meshes, three-point and physical lighting, instanced rendering, glTF/Draco model loading, shadow tuning, and raycasting
  • Shows concrete settings such as shadow map sizes, shadow radius and blur samples, and light power in lumens
  • Designed for interactive 3D scenes, product configurators, and immersive web experiences built on Three.js

Install

$ npx -y skills add freshtechbro/claudedesignskills --skill threejs-webgl -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Three.js WebGL/WebGPU Development

Overview

Three.js is the industry-standard JavaScript library for creating 3D graphics in web browsers using WebGL and WebGPU. This skill provides comprehensive guidance for building performant, interactive 3D experiences including scenes, cameras, renderers, geometries, materials, lights, textures, and animations.

Core Concepts

Scene Graph Architecture

Three.js uses a hierarchical scene graph where all 3D objects are organized in a tree structure:

Scene
├── Camera
├── Lights
│   ├── AmbientLight
│   ├── DirectionalLight
│   └── PointLight
├── Meshes
│   ├── Mesh (Geometry + Material)
│   └── InstancedMesh
└── Groups

Essential Components

Every Three.js application requires these core elements:

  1. Scene: Container for all 3D objects
  2. Camera: Defines the viewing perspective
  3. Renderer: Draws the scene to canvas (WebGL or WebGPU)
  4. Geometry: Defines the shape of objects
  5. Material: Defines the surface appearance
  6. Mesh: Combines geometry and material

Quick Start Pattern

Basic Scene Setup

Details

Repository
github.com/freshtechbro/claudedesignskills
Categories
3D, CAD & Modeling, Frontend & UI Code
First seen
May 16, 2026

More from freshtechbro/claudedesignskills

All 22

Similar to Threejs Webgl

More 3D, CAD & Modeling