Skills for Real Engineers. Straight from my .agents directory.
threejs-lighting
Agent skill fromCloudAI-X/threejs-skills
Light types and physical units, shadow maps, HDR environment lighting, light probes, and lighting performance, on WebGL or with WebGPU and TSL. Use when adding or tuning lights, fixing shadow acne, setting up image-based lighting, or dimming an environment map.
How to install threejs-lighting
npx skills add CloudAI-X/threejs-skills# or add only this skill to Claude Code: copy the folder
skills/threejs-lighting/
# into
~/.claude/skills/threejs-lighting/ (all projects)
.claude/skills/threejs-lighting/ (one project)
1# Three.js Lighting23Targets three.js r186. Examples use WebGLRenderer; the WebGPU and TSL section uses WebGPURenderer.45## Quick Start67```javascript8import * as THREE from "three";910const renderer = new THREE.WebGLRenderer({ antialias: true });11renderer.setPixelRatio(window.devicePixelRatio);12renderer.setSize(window.innerWidth, window.innerHeight);13document.body.appendChild(renderer.domElement);1415const scene = new THREE.Scene();1617const camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 0.1, 100);18camera.position.set(4, 3, 8);1920// A single directional light: intensity is a plain multiplier, no distance falloff21const dirLight = new THREE.DirectionalLight(0xffffff, 3);22dirLight.position.set(5, 10, 5);23scene.add(dirLight);2425const floor = new THREE.Mesh(26 new THREE.PlaneGeometry(20, 20),27 new THREE.MeshStandardMaterial({ color: 0x808080 })28);29floor.rotation.x = -Math.PI / 2;30scene.add(floor);3132const mesh = new THREE.Mesh(33 new THREE.BoxGeometry(1, 1, 1),34 new THREE.MeshStandardMaterial({ color: 0x3a76c4 })35);36scene.add(mesh);3738// Shadows need three switches: renderer, light, and the meshes that cast and receive39renderer.shadowMap.enabled = true;40dirLight.castShadow = true;41mesh.castShadow = true;42floor.receiveShadow = true;4344function animate() {45 renderer.render(scene, camera);46}4748renderer.setAnimationLoop(animate);49```5051## Light Types and Units5253| Light | Shadows | Intensity | Notes |54|---|---|---|---|55…
Excerpt shown under the repository's MIT license.
More skills in threejs-skills
Similar skill repositories
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
