# \#light

**URL:** https://discourse.threejs.org/tag/light/890.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Interactive 3D Room with Dynamic Light & Shadows](https://discourse.threejs.org/t/interactive-3d-room-with-dynamic-light-shadows/94982)

<div class="topic-metadata">

**Author:** [@farhad.cemil](https://discourse.threejs.org/u/farhad.cemil)\
**Replies:** 0\
**Last updated:** [October 3, 2026, 6:00pm UTC](https://discourse.threejs.org/t/interactive-3d-room-with-dynamic-light-shadows/94982 "2026-10-03T18:00:34Z")

</div>

Check website : 3D Room Light

---

## [Scattering Flow Fields](https://discourse.threejs.org/t/scattering-flow-fields/90524)

<div class="topic-metadata">

**Author:** [@Tibi](https://discourse.threejs.org/u/Tibi)\
**Replies:** 1\
**Last updated:** [March 24, 2026, 3:16am UTC](https://discourse.threejs.org/t/scattering-flow-fields/90524 "2026-03-24T03:16:35Z")

</div>

Curl-Light Tubes is a real-time Three.js experiment that visualizes procedural tube fields generated from curl-noise paths and rendered with custom GLSL shaders. Each tube is animated with dash-based motion cues and per-…

---

## [How do I get dynamic realistic sun rays in WebGPU](https://discourse.threejs.org/t/how-do-i-get-dynamic-realistic-sun-rays-in-webgpu/66430)

<div class="topic-metadata">

**Author:** [@awts\_moos](https://discourse.threejs.org/u/awts_moos)\
**Replies:** 3\
**Last updated:** [August 13, 2025, 2:36am UTC](https://discourse.threejs.org/t/how-do-i-get-dynamic-realistic-sun-rays-in-webgpu/66430 "2025-08-13T02:36:53Z")

</div>

B"H I’m looking to use WebGPU to create super realistic sun rays like this^. There is this question about realistic lighting, but that was before (and not considering) the advantages of the WebGPU API. Same thing wi…

---

## [Enviroment and Light](https://discourse.threejs.org/t/enviroment-and-light/69515)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 3\
**Last updated:** [August 21, 2024, 8:46am UTC](https://discourse.threejs.org/t/enviroment-and-light/69515 "2024-08-21T08:46:32Z")

</div>

Hi guys . I tested different lighting and environment hdr. I need such threejs editor result when we select modelviewer environment. Do you have file? and What is best setting that works for you? What I need: What…

---

## [With IBL, do I remove lights from the scene?](https://discourse.threejs.org/t/with-ibl-do-i-remove-lights-from-the-scene/65757)

<div class="topic-metadata">

**Author:** [@RichFWebb](https://discourse.threejs.org/u/RichFWebb)\
**Replies:** 4\
**Last updated:** [May 21, 2024, 3:56pm UTC](https://discourse.threejs.org/t/with-ibl-do-i-remove-lights-from-the-scene/65757 "2024-05-21T15:56:34Z")

</div>

When I render the scene, should the lights still be in it? Or am I getting “double” lighting? const rt = new THREE.WebGLCubeRenderTarget(512); const cubeCamera = new THREE.CubeCamera(1, 20000, rt); scene.add(cubeCamera…

---

## [Hidden layer's light not active when re enabled](https://discourse.threejs.org/t/hidden-layers-light-not-active-when-re-enabled/64165)

<div class="topic-metadata">

**Author:** [@ventoline](https://discourse.threejs.org/u/ventoline)\
**Replies:** 4\
**Last updated:** [April 16, 2024, 9:02pm UTC](https://discourse.threejs.org/t/hidden-layers-light-not-active-when-re-enabled/64165 "2024-04-16T21:02:25Z")

</div>

I have a scene with a ligh on an hidden layer, when i enable the layer the layer is not active, do i need to render the scene? let wireLight = new THREE.DirectionalLight(); wireLight.intensity = 10; wireLight.na…

---

## [Directional light flickering issues with shadows](https://discourse.threejs.org/t/directional-light-flickering-issues-with-shadows/54884)

<div class="topic-metadata">

**Author:** [@aalavandhaann](https://discourse.threejs.org/u/aalavandhaann)\
**Replies:** 0\
**Last updated:** [August 12, 2023, 4:57am UTC](https://discourse.threejs.org/t/directional-light-flickering-issues-with-shadows/54884 "2023-08-12T04:57:10Z")

</div>

I am trying to simulate sunlight using a directional light. In the process I am setting the size of the shadow camera values such that it fits the scene as tight as possible. However, I am facing a peculiar problem of li…

---

## [How to get uniform lighting between two adjacent mesh?](https://discourse.threejs.org/t/how-to-get-uniform-lighting-between-two-adjacent-mesh/54663)

<div class="topic-metadata">

**Author:** [@Anoth](https://discourse.threejs.org/u/Anoth)\
**Replies:** 1\
**Last updated:** [August 4, 2023, 8:13pm UTC](https://discourse.threejs.org/t/how-to-get-uniform-lighting-between-two-adjacent-mesh/54663 "2023-08-04T20:13:33Z")

</div>

Hello, I have a basic scene with two MeshStandardMaterials, and I’m using noise to displace the vertices. I have lighting and shadows enabled, but I can’t seem to get uniform lighting to work between the two meshes.: Her…

---

## [Feature idea: world scale, or unit scale](https://discourse.threejs.org/t/feature-idea-world-scale-or-unit-scale/49063)

<div class="topic-metadata">

**Author:** [@trusktr](https://discourse.threejs.org/u/trusktr)\
**Replies:** 7\
**Last updated:** [June 2, 2023, 10:39am UTC](https://discourse.threejs.org/t/feature-idea-world-scale-or-unit-scale/49063 "2023-06-02T10:39:40Z")

</div>

“units” in three.js are supposed to be in meters. Some formulas, for example physically correct lights, assume units of meters. We cannot simply change the .scale of a Scene, because that changes the result of how light…

---

## [Use light to cast only the shadows](https://discourse.threejs.org/t/use-light-to-cast-only-the-shadows/46288)

<div class="topic-metadata">

**Author:** [@orion\_prime](https://discourse.threejs.org/u/orion_prime)\
**Replies:** 2\
**Last updated:** [December 29, 2022, 6:09am UTC](https://discourse.threejs.org/t/use-light-to-cast-only-the-shadows/46288 "2022-12-29T06:09:01Z")

</div>

With a good hdri i’m getting nice colored specular reflections but there’s no shadows with a directional light placed in around the “sun” region in the hdri , i’m getting good shadows only while the light intensity is…

---

## [Uniformly light/shadow accumulation](https://discourse.threejs.org/t/uniformly-light-shadow-accumulation/44946)

<div class="topic-metadata">

**Author:** [@javiersanjuan](https://discourse.threejs.org/u/javiersanjuan)\
**Replies:** 2\
**Last updated:** [December 2, 2022, 7:09pm UTC](https://discourse.threejs.org/t/uniformly-light-shadow-accumulation/44946 "2022-12-02T19:09:21Z")

</div>

I’m working with the ProgressiveLightMap class and my goal is to accumulate uniformly lights and shadows in a scene. For testing that, I set a light which move all around an object that is in the middle, so I would like…

---

## [What is the name of the example that has a light object with an extensive mini-menu for tweaking purposes?](https://discourse.threejs.org/t/what-is-the-name-of-the-example-that-has-a-light-object-with-an-extensive-mini-menu-for-tweaking-purposes/44335)

<div class="topic-metadata">

**Author:** [@MeJayEss](https://discourse.threejs.org/u/MeJayEss)\
**Replies:** 1\
**Last updated:** [November 4, 2022, 6:20am UTC](https://discourse.threejs.org/t/what-is-the-name-of-the-example-that-has-a-light-object-with-an-extensive-mini-menu-for-tweaking-purposes/44335 "2022-11-04T06:20:57Z")

</div>

Several months ago I waded through all the ThreeJS examples and found an example that has a ThreeSJ light object, that had a mini-menu (dat.gui.module.js) you could use to play with the parameters. I can’t seem to find …

---

## [Why does the FBX loader code have code for creating lights in it?](https://discourse.threejs.org/t/why-does-the-fbx-loader-code-have-code-for-creating-lights-in-it/44315)

<div class="topic-metadata">

**Author:** [@MeJayEss](https://discourse.threejs.org/u/MeJayEss)\
**Replies:** 3\
**Last updated:** [November 3, 2022, 5:02pm UTC](https://discourse.threejs.org/t/why-does-the-fbx-loader-code-have-code-for-creating-lights-in-it/44315 "2022-11-03T17:02:13Z")

</div>

I am currently diving deeper into lights and ThreeJS. Much to my surprise I found the code shown below in FBXLoader.js. Can someone explain to me why the FBX loader has a function for creating lights (createLight()) as…

---

## [Invert light direction for the back side outside shader code](https://discourse.threejs.org/t/invert-light-direction-for-the-back-side-outside-shader-code/41660)

<div class="topic-metadata">

**Author:** [@Yin\_Cognyto](https://discourse.threejs.org/u/Yin_Cognyto)\
**Replies:** 5\
**Last updated:** [August 21, 2022, 11:30pm UTC](https://discourse.threejs.org/t/invert-light-direction-for-the-back-side-outside-shader-code/41660 "2022-08-21T23:30:44Z")

</div>

When setting material.side = THREE.BackSide; for a shpere and the directional light is positioned at camera’s position (i.e. at viewer’s position), it’s the far side of the material that gets lit and the near side is in …

---

## [Make earth look brighter?](https://discourse.threejs.org/t/make-earth-look-brighter/40678)

<div class="topic-metadata">

**Author:** [@MeJayEss](https://discourse.threejs.org/u/MeJayEss)\
**Replies:** 3\
**Last updated:** [July 25, 2022, 7:03am UTC](https://discourse.threejs.org/t/make-earth-look-brighter/40678 "2022-07-25T07:03:07Z")

</div>

I have my animated earth and moon working now. Thank you to all of you who answered my previous questions. Now on to aesthetics. My earth, as you can see in the screen is too dark and too blue. What can I do to make …

---

## [How to remove these light circles on the floor?](https://discourse.threejs.org/t/how-to-remove-these-light-circles-on-the-floor/40655)

<div class="topic-metadata">

**Author:** [@FluffyCat](https://discourse.threejs.org/u/FluffyCat)\
**Replies:** 1\
**Last updated:** [July 23, 2022, 11:26am UTC](https://discourse.threejs.org/t/how-to-remove-these-light-circles-on-the-floor/40655 "2022-07-23T11:26:51Z")

</div>

Hello, I am a beginner and need help to remove these light circles on the floor. Here is the light code: const ambientlight = new THREE.AmbientLight(0x404040); scene.add(ambientlight); const directionalLight = new…

---

## [Directional light target not tracking target](https://discourse.threejs.org/t/directional-light-target-not-tracking-target/39437)

<div class="topic-metadata">

**Author:** [@Michael\_Nicol](https://discourse.threejs.org/u/Michael_Nicol)\
**Replies:** 3\
**Last updated:** [June 23, 2022, 7:35am UTC](https://discourse.threejs.org/t/directional-light-target-not-tracking-target/39437 "2022-06-23T07:35:51Z")

</div>

Hello, I am trying to add a target to the scene and have a light point at it. However, I am having issues with the target not being tracked by the light. I made a JS fiddle describing my issue: Edit fiddle - JSFiddle -…

---

## [Jagged Overlapping Directional Light Shadow](https://discourse.threejs.org/t/jagged-overlapping-directional-light-shadow/39414)

<div class="topic-metadata">

**Author:** [@Michael\_Nicol](https://discourse.threejs.org/u/Michael_Nicol)\
**Replies:** 1\
**Last updated:** [June 20, 2022, 4:53am UTC](https://discourse.threejs.org/t/jagged-overlapping-directional-light-shadow/39414 "2022-06-20T04:53:33Z")

</div>

I am implementing shadows onto my scene by adding a shadow map to each directional camera. My program uses a helper function to do this, and ends up using these settings: shadows: { enabled: true, type:…

---

## [Points with lighting](https://discourse.threejs.org/t/points-with-lighting/24552)

<div class="topic-metadata">

**Author:** [@trusktr](https://discourse.threejs.org/u/trusktr)\
**Replies:** 9\
**Last updated:** [April 19, 2022, 2:54am UTC](https://discourse.threejs.org/t/points-with-lighting/24552 "2022-04-19T02:54:09Z")

</div>

PointsMaterial does not yet support lighting. But if you use MeshPhongMaterial on a Points object, you can use lighting, but then you won’t have the material features like sizeAttenuation or size, so the points will have…

---

## [Ambient light limited to within a boxed area?](https://discourse.threejs.org/t/ambient-light-limited-to-within-a-boxed-area/34464)

<div class="topic-metadata">

**Author:** [@prominent](https://discourse.threejs.org/u/prominent)\
**Replies:** 2\
**Last updated:** [February 4, 2022, 10:02am UTC](https://discourse.threejs.org/t/ambient-light-limited-to-within-a-boxed-area/34464 "2022-02-04T10:02:44Z")

</div>

Is it possible to limit an ambient light to within a specific area? For example if you want to evenly luminate only what is inside a room. It doesn’t appear as if there are any lights available that can do this. Also wo…

---

## [Unrealbloom light cannot penetrate transparent objects](https://discourse.threejs.org/t/unrealbloom-light-cannot-penetrate-transparent-objects/34197)

<div class="topic-metadata">

**Author:** [@Yu\_Jing](https://discourse.threejs.org/u/Yu_Jing)\
**Replies:** 0\
**Last updated:** [January 27, 2022, 4:48pm UTC](https://discourse.threejs.org/t/unrealbloom-light-cannot-penetrate-transparent-objects/34197 "2022-01-27T16:48:56Z")

</div>

selectiveBloom object’s light cannot penetrate transparent objects. Is this something that can’t be changed, or where it needs to be adjusted？

---

## [MeshStandardMaterial texture to convert to basic](https://discourse.threejs.org/t/meshstandardmaterial-texture-to-convert-to-basic/32386)

<div class="topic-metadata">

**Author:** [@swingingtom](https://discourse.threejs.org/u/swingingtom)\
**Replies:** 6\
**Last updated:** [December 6, 2021, 7:25am UTC](https://discourse.threejs.org/t/meshstandardmaterial-texture-to-convert-to-basic/32386 "2021-12-06T07:25:40Z")

</div>

Hi threejs.discourse community ! I would like to make material that would react to lights, but only on several defined areas ( via texture ). Excluded areas, should behave like MeshBasicMaterial; totally ignoring lighti…

---

## [Want to create a light like attached image](https://discourse.threejs.org/t/want-to-create-a-light-like-attached-image/31195)

<div class="topic-metadata">

**Author:** [@return75](https://discourse.threejs.org/u/return75)\
**Replies:** 1\
**Last updated:** [October 27, 2021, 5:59pm UTC](https://discourse.threejs.org/t/want-to-create-a-light-like-attached-image/31195 "2021-10-27T17:59:03Z")

</div>

hi guys. I want to create some thing like this image. but i dont know which kind of light acts like this.

---

## [Creating shadows in custom shaders](https://discourse.threejs.org/t/creating-shadows-in-custom-shaders/23894)

<div class="topic-metadata">

**Author:** [@Tormak](https://discourse.threejs.org/u/Tormak)\
**Replies:** 0\
**Last updated:** [February 26, 2021, 3:30pm UTC](https://discourse.threejs.org/t/creating-shadows-in-custom-shaders/23894 "2021-02-26T15:30:03Z")

</div>

So I have been working on quite a large project. It is finished, except I need to implement proper lighting. I have the light source, intensity, and color accounted for, but need to create shadows on my own, as using poi…

---

## [Three.js shadow too detailed](https://discourse.threejs.org/t/three-js-shadow-too-detailed/23130)

<div class="topic-metadata">

**Author:** [@stefano76](https://discourse.threejs.org/u/stefano76)\
**Replies:** 7\
**Last updated:** [February 7, 2021, 8:24am UTC](https://discourse.threejs.org/t/three-js-shadow-too-detailed/23130 "2021-02-07T08:24:24Z")

</div>

I have a loaded 3D object and I want a shadow not as detailed as in the image. I’d want a shadow with softer edges and I also tried to load a png as shadow texture, but that’s not shown. Is it possibile to “simplify”…

---

## [Missing Specular Light Color](https://discourse.threejs.org/t/missing-specular-light-color/22757)

<div class="topic-metadata">

**Author:** [@lorenzo](https://discourse.threejs.org/u/lorenzo)\
**Replies:** 1\
**Last updated:** [January 24, 2021, 10:51am UTC](https://discourse.threejs.org/t/missing-specular-light-color/22757 "2021-01-24T10:51:04Z")

</div>

On my OpenGL app I can quite setup a light with ambient, diffuse and specular colours. So I can turn off the specular just using a black specular light color. How can I do the same on Three.js ? I am used to put on the…

---

## [Luminous intensity calculation](https://discourse.threejs.org/t/luminous-intensity-calculation/19242)

<div class="topic-metadata">

**Author:** [@jmil](https://discourse.threejs.org/u/jmil)\
**Replies:** 6\
**Last updated:** [October 8, 2020, 5:42am UTC](https://discourse.threejs.org/t/luminous-intensity-calculation/19242 "2020-10-08T05:42:36Z")

</div>

Hello! This might be a terribly dumb question, but I’ve been searching for a while and unable to find an answer. On the Light documentation page it states that: In physically correct mode, the product of color \* intens…
