From partme-ai-full-stack-skills
Configures three.js lights including AmbientLight, HemisphereLight, DirectionalLight, PointLight, SpotLight, RectAreaLight, LightProbe, IESSpotLight, shadows, and helpers like RectAreaLightUniformsLib and LightProbeGenerator for direct/indirect lighting, probes, and area lights.
npx claudepluginhub partme-ai/full-stack-skills --plugin t2ui-skillsThis skill uses the workspace's default tool permissions.
**ALWAYS use this skill when the user mentions:**
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
ALWAYS use this skill when the user mentions:
castShadow / receiveShadow, shadow map size, bias, normal bias, camera frusta for shadow castersLightProbe for irradiance-style probes; IESSpotLight with IES dataIMPORTANT: lights vs loaders vs node-tsl
| Topic | Skill |
|---|---|
| Light classes and shadows | threejs-lights |
| Loading IES/HDR files | threejs-loaders |
| LightNode / TSL lighting | threejs-node-tsl |
Trigger phrases include:
IESSpotLight per docs.// 1. Enable shadows on renderer
renderer.shadowMap.enabled = true;
// 2. Configure light as shadow caster
const light = new THREE.DirectionalLight(0xffffff, 1);
light.castShadow = true;
light.shadow.mapSize.set(2048, 2048);
light.shadow.bias = -0.0001; // Adjust to remove shadow acne
// 3. Validate: verify shadow appears before tuning bias
// Set castShadow on meshes, receiveShadow on ground
mesh.castShadow = true;
ground.receiveShadow = true;
See examples/workflow-directional-shadow.md.
| Docs section | Representative links |
|---|---|
| Lights | https://threejs.org/docs/Light.html |
| Directional | https://threejs.org/docs/DirectionalLight.html |
| Spot | https://threejs.org/docs/SpotLight.html |
| Rect area | https://threejs.org/docs/RectAreaLight.html |
RectAreaLight without required libs yields black or wrong shading—verify init.Light and shadow classes live under Lights in three.js docs. RectAreaLight and probe addons depend on extra init from Addons → Lights; IES profiles require threejs-loaders for file fetch before the light API is usable.
When answering under this skill, prefer responses that:
DirectionalLight, SpotLight, …) and shadow pages when shadows are on.renderer.shadowMap.enabled alongside light castShadow (see threejs-renderers).English: lights, shadows, directional, spotlight, rectarea, lightprobe, three.js
中文: 灯光、阴影、平行光、聚光灯、面光源、LightProbe、three.js