
r3f-lighting
Light React Three Fiber scenes with direct lights, environment maps, and shadows
by enzedFree
Description
r3f-lighting is an agent skill for lighting React Three Fiber scenes with direct lights, environment maps and shadows. It helps with light placement, image-based lighting, fixing shadow artifacts and other lighting problems. The agent first checks the installed Three.js, Fiber and Drei versions and the renderer; the examples target Fiber 9 with React 19, Three.js r185 and WebGL. Key points include using environment lighting for physically based reflections and fill and direct lights for direction and real-time shadows, noting that more ambient light will not bring back missing metallic reflections, that an owned HDR or EXR file is better than Drei presets in production, and that a Sky component is not a matching sun or environment by itself. Install with npx skills add https://github.com/enzed/r3f-skills --skill r3f-lighting.…
Highlights
- Direct lights, environment maps and shadows
- Version checks for Three.js, Fiber and Drei
- Image-based lighting with HDR or EXR assets
- Fixes for shadow artifacts
- Shadow map choices across Three.js versions
Ratings & Reviews
No ratings yet
Be the first to rate r3f-lighting.
People also visit

r3f-materials
Choose and configure React Three Fiber surface materials, PBR, transparency
r3f-lighting FAQ
What does this skill make the agent do?
It guides the agent in setting up and fixing lighting in React Three Fiber scenes, including environment lighting, direct lights and shadows.
Which versions does it target?
The examples target Fiber 9 with React 19, Three.js r185 and WebGL, and the agent checks your installed versions first.
Should I use Drei environment presets?
The skill says presets are fine for prototyping but recommends an owned HDR or EXR asset in production, since presets depend on external hosting.
How do I install it?
Run npx skills add https://github.com/enzed/r3f-skills --skill r3f-lighting.
What did the security audits find?
The skills.sh page lists: Gen Agent Trust Hub: Pass, Socket: Pass, Snyk: Pass.
What are the best r3f-lighting alternatives?
Popular alternatives to r3f-lighting include r3f-postprocessing, threejs-materials-lighting and react-three-fiber. See all r3f-lighting alternatives






