
threejs-materials-lighting
Light and shade a three.js scene: choose materials
by gamedev-skillsFree
Description
This agent skill helps a developer make a three.js scene look right when meshes render black or flat. It targets three.js r187. It covers how to choose a material, such as MeshStandardMaterial for physically based surfaces or MeshBasicMaterial for unlit ones, and how to build a light rig from ambient, hemisphere, directional, point and spot lights. It also sets up shadows through the renderer's shadow map and image-based lighting, where an HDR environment map lights and reflects the scene. Tone mapping is included as well. The skill notes that lighting has been physically based since r155, so light intensities from older tutorials will look far too dark in current versions. It is for work on materials and lighting only. The renderer, camera and animation loop belong to threejs-scene-setup, model loading belongs to threejs-gltf-loading, and custom GLSL or node shaders belong to the shader-programming skill. The skill is part of the awesome-gamedev-agent-skills repository on GitHub.…
Highlights
- Choose between PBR and unlit materials
- Build a light rig with ambient, directional, point and spot lights
- Set up shadows with the renderer shadow map
- Add HDR image-based lighting and environment reflections
- Apply tone mapping for three.js r187
Ratings & Reviews
No ratings yet
Be the first to rate threejs-materials-lighting.
People also visit

threejs-materials
Three.js materials - PBR, basic, phong, shader materials, material properties
threejs-materials-lighting FAQ
Why does my three.js mesh render black?
The skill covers this case. A mesh that renders black or flat usually needs a material choice or a light rig, and the skill walks through both.
Why are my lights too dark?
Lighting has been physically based since r155, so intensities from older tutorials look too dark on current versions. The skill is written for r187.
Does it cover loading 3D models?
No. Model loading belongs to threejs-gltf-loading. This skill covers materials, lights, shadows and environment lighting.
How do I install it?
Run npx skills add https://github.com/gamedev-skills/awesome-gamedev-agent-skills --skill threejs-materials-lighting.
What security audits has it passed?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best threejs-materials-lighting alternatives?
Popular alternatives to threejs-materials-lighting include threejs-materials, threejs and threejs-webgl. See all threejs-materials-lighting alternatives








