with one click
threejs
Three.js 材质:PBR(Standard/Physical)、基础材质、透明度、贴图与渲染状态。用户需要选择/调试材质效果时调用。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Three.js 材质:PBR(Standard/Physical)、基础材质、透明度、贴图与渲染状态。用户需要选择/调试材质效果时调用。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Weekly Focus Engineering analysis using ActivityWatch data. Use when analyzing app usage patterns, detecting context switching problems, identifying "death loops" (repetitive app switching), calculating focus scores, or creating weekly productivity reviews.
WCAG 2.2 AA conformance auditor. Systematically verifies success criteria through automated, interactive, and manual testing methods.
Implement features from spec documents (context/doc required)
PR review for bugs, security & quality (requires PR URL)
Brutally honest roasts of your code with fixes
Accessibility improvement planning support. Generates organizational maturity assessment, phased roadmap, KPI design, and stakeholder persuasion materials.
| name | Three.js材质 |
| description | Three.js 材质:PBR(Standard/Physical)、基础材质、透明度、贴图与渲染状态。用户需要选择/调试材质效果时调用。 |
import * as THREE from "three";
const material = new THREE.MeshStandardMaterial({
color: 0xffffff,
metalness: 0.2,
roughness: 0.6,
});
const mesh = new THREE.Mesh(new THREE.SphereGeometry(1, 32, 32), material);
scene.add(mesh);
MeshStandardMaterial:通用 PBR(推荐默认)MeshPhysicalMaterial:更高级 PBR(clearcoat、transmission 等)MeshBasicMaterial:不受光照影响(调试/卡通 UI 物体)MeshPhongMaterial:传统高光模型(非 PBR)material.transparent = truematerial.opacity = 0 ~ 1material.depthWrite = falserenderOrdermaterial.side = THREE.DoubleSide;
const loader = new THREE.TextureLoader();
const map = loader.load("/albedo.jpg");
map.colorSpace = THREE.SRGBColorSpace;
material.map = map;
material.needsUpdate = true;
scene.environment 提供环境反射/漫反射(HDRI)scene.environment = envMap;