threejs-scene-setup
Installation
SKILL.md
Three.js Scene Setup
When to Use
Use this skill when:
- Starting a new Three.js project
- Setting up a new scene in an existing project
- Refactoring scene initialization code
- Ensuring proper resource management and cleanup
Core Principles
- Proper Initialization Order: Renderer → Scene → Camera → Lights → Objects
- Resource Management: Track and dispose of geometries, materials, and textures
- Responsive Design: Handle window resize events
- Performance: Use efficient rendering settings
- Type Safety: Leverage TypeScript for all Three.js objects