3D Code Library
Discover reusable code snippets, templates, and examples for your 3D projects
Three.js Starter
Basic Three.js scene setup with camera, renderer and lighting
Three.js
Beginner
GLSL Gradient
Fragment shader creating a smooth color gradient
GLSL
Intermediate
Physics Setup
Basic Cannon.js physics world with a falling sphere
Cannon.js
Intermediate
WebXR VR
Basic VR setup with WebXR and Three.js
WebXR
Advanced
Instanced Meshes
Render thousands of objects efficiently with instancing
Performance
Advanced
Bloom Effect
Add glowing bloom effects to your scene
Post-processing
Intermediate