Install any skill in seconds. Free to start, no credit card required.
Get Started Free →sickn33/threejs-lighting
Three.js lighting - light types, shadows, environment lighting.
Passed 24 of 24 test cases with the skill, and 21 of 24 without it.
and 1 more in the full report
3 fixed21 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
You are creating a lightweight 3D product viewer in Three.js and want soft contact shadows on the floor plane directly beneath a 3D model. Computing real-time shadow maps for the key light causes frame drops on mobile devices. What JSM utility object can be added to the scene to render fast, pre-blurred contact shadows without casting full scene shadow maps?
| Checked | Without skill | With skill |
|---|---|---|
| Imports ContactShadows from three/examples/jsm/objects/ContactShadows.js | Missed | Passed |
| Instantiates ContactShadows and adds it to the scene | Missed | Passed |
The instructions your model reads when the skill loads.
import * as THREE from "three";
// Basic lighting setup
const ambientLight = new THREE.AmbientLight(0xffffff, 0.5);
scene.add(ambientLight);
const directionalLight = new THREE.DirectionalLight(0xffffff, 1);
directionalLight.position.set(5, 5, 5);
scene.add(directionalLight);
| Light | Description | Shadow Support | Cost |
|---|---|---|---|
| AmbientLight | Uniform everywhere | No | Very Low |
| HemisphereLight | Sky/ground gradient | No | Very Low |
| DirectionalLight | Parallel rays (sun) | Yes | Low |
| PointLight | Omnidirectional (bulb) | Yes | Medium |
| SpotLight | Cone-shaped | Yes | Medium |
| RectAreaLight | Area light (window) | No* | High |
*RectAreaLight shadows require custom solutions
Illuminates all objects equally. No direction, no shadows.
// AmbientLight(color, intensity)
test cases passed, vs 21 / 24 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.