AGENT SKILL

Three.js 三维网页应用开发

threejs

使用 Three.js(WebGL/WebGPU)构建 3D Web 应用。适用于 3D 场景、动画、自定义着色器、PBR 材质、VR/XR 体验、游戏、数据可视化和产品配置器。

License 许可
MIT
最近更新
2026-08-27
Stars
★ 0
Forks
0

01 前言 Front Matter

name
threejs
license
MIT
version
2.0.0
description
Build 3D web apps with Three.js (WebGL/WebGPU). Use for 3D scenes, animations, custom shaders, PBR materials, VR/XR experiences, games, data visualizations, product configurators.

02 资源文件 16

03 SKILL.md 正文

Three.js Development

Build high-performance 3D web applications using Three.js - a cross-browser WebGL/WebGPU library.

When to Use This Skill

Use when working with:

  • 3D scenes, models, animations, or visualizations
  • WebGL/WebGPU rendering and graphics programming
  • Interactive 3D experiences (games, configurators, data viz)
  • Camera controls, lighting, materials, or shaders
  • Loading 3D assets (GLTF, FBX, OBJ) or textures
  • Post-processing effects (bloom, depth of field, SSAO)
  • Physics simulations, VR/XR experiences, or spatial audio
  • Performance optimization (instancing, LOD, frustum culling)

Progressive Learning Path

Level 1: Getting Started

  • Load references/00-fundamentals.md - Fundamentals
  • Load references/01-getting-started.md - Scene setup, basic geometries, materials, lights, rendering loop

Level 2: Common Tasks

  • Asset Loading: references/02-loaders.md - GLTF, FBX, OBJ, texture loaders
  • Textures: references/03-textures.md - Types, mapping, wrapping, filtering
  • Cameras: references/04-cameras.md - Perspective, orthographic, controls
  • Lights: references/05-lights.md - Types, shadows, helpers
  • Animations: references/06-animations.md - Clips, mixer, keyframes
  • Math: references/07-math.md - Vectors, matrices, quaternions, curves
  • Geometry: references/18-geometry.md - Built-in shapes, BufferGeometry, custom geometry, instancing
  • Materials: references/11-materials.md - PBR, basic, phong, lambert, physical, toon, normal, depth, raw, shader materials, material properties

Level 3: Interactive & Effects

  • Interaction: references/08-interaction.md - Raycasting, picking, transforms
  • Post-Processing: references/09-postprocessing.md - Passes, bloom, SSAO, SSR
  • Controls (Addons): references/10-controls.md - Orbit, transform, first-person

Level 4: Advanced Rendering

  • Materials Advanced: references/11-materials-advanced.md - PBR, custom shaders
  • Performance: references/12-performance.md - Instancing, LOD, batching, culling
  • Node Materials (TSL): references/13-node-materials.md - Shader graphs, compute

Level 5: Specialized

  • Physics: references/14-physics-vr.md - Ammo, Rapier, Jolt, VR/XR
  • Advanced Loaders: references/15-specialized-loaders.md - SVG, VRML, domain-specific
  • WebGPU: references/16-webgpu.md - Modern backend, compute shaders
  • Shaders: references/17-shader.md - GLSL, ShaderMaterial, uniforms, custom effects

Quick Start Pattern

// 1. Scene, Camera, Renderer
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);

// 2. Add Objects
const geometry = new THREE.BoxGeometry();
const material = new THREE.MeshStandardMaterial({ color: 0x00ff00 });
const cube = new THREE.Mesh(geometry, material);
scene.add(cube);

// 3. Add Lights
const light = new THREE.DirectionalLight(0xffffff, 1);
light.position.set(5, 5, 5);
scene.add(light);
scene.add(new THREE.AmbientLight(0x404040));

// 4. Animation Loop
function animate() {
  requestAnimationFrame(animate);
  cube.rotation.x += 0.01;
  cube.rotation.y += 0.01;
  renderer.render(scene, camera);
}
animate();

External Resources

04 同仓库更多 Skills

Puh1001
Puh1001/DocumentManager

Next.js 全栈 Web 开发

web-frameworks

使用 Next.js(App Router、Server Components、RSC、PPR、SSR、SSG、ISR)、Turborepo(monorepo 管理、任务流水线、远程缓存、并行执行)和 RemixIcon(3100+ 个线性/填充风格 SVG 图标)构建现代全栈 Web 应用。适用于创建 React 应用、实现服务端渲染、搭建包含多个包的 monorepo、优化构建性能与缓存策略、添加图标库、管理共享依赖,或开发 TypeScript 全栈项目。

软件开发工程师前端开发与界面实现
★ 0
Puh1001
Puh1001/DocumentManager

UI 界面样式设计与实现

ui-styling

使用 shadcn/ui 组件(基于 Radix UI + Tailwind 构建)、Tailwind CSS 工具类优先(utility-first)的样式方案以及基于画布的视觉设计,创建美观且无障碍的用户界面。适用于构建用户界面、实现设计系统、创建响应式布局、添加无障碍组件(对话框、下拉菜单、表单、表格)、定制主题与配色、实现深色模式、生成视觉设计与海报,或在多个应用间建立一致的样式规范。

软件开发工程师前端开发与界面实现
★ 0
Puh1001
Puh1001/DocumentManager

结构化逐步推理

sequential-thinking

当复杂问题需要系统的逐步推理,并能够修正思路、分支到备选方案或动态调整范围时使用。适用于多阶段分析、设计规划、问题分解或初始范围尚不清晰的任务。

知识工作者结构化问题解决引导
★ 0
Puh1001
Puh1001/DocumentManager

技术方案研究规划

research

当需要对可扩展、安全且可维护的技术方案进行研究、分析和规划时使用。

软件开发工程师技术预研与概念验证
★ 0
Puh1001
Puh1001/DocumentManager

技术方案规划

planning

适用于需要规划可扩展、安全且可维护的技术方案时。

系统架构师任务规划与分解
★ 0
Puh1001
Puh1001/DocumentManager

支付服务集成

payment-integration

集成 SePay(VietQR)、Polar、Stripe、Paddle(MoR 订阅)和 Creem.io(授权许可)支付。涵盖结账、webhook、订阅、二维码和多提供商订单。

软件开发工程师支付运营与结算管理
★ 0