# Black PBR texture under Environment lighting in Node Material

**URL:** <https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154>\
**Category:** Questions\
**Tags:** lighting, material, pbr, environment\
**Created:** [January 20, 2026, 6:42am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154 "2026-01-20T06:42:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sambler](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sambler/32/49632_2.png) [@Sambler](https://forum.babylonjs.com/u/Sambler)\
**Post date:** [January 20, 2026, 6:42am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/1 "2026-01-20T06:42:27Z")

</div>

I’m trying to create a PBR texture in Node Material, but when I switch to **Environment** lighting it becomes black for some reason.

What am I doing wrong?  
Is it possible that using an **HDRI** for PBR lighting is not the right approach?

P.S. I’m working on a **furniture project** where I want **physically correct materials** for realistic rendering of textures on furniture products (in this case, wood).

[https://nme.babylonjs.com/#423PH6#1](https://nme.babylonjs.com/#423PH6#1)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/5/0/5039c4d50bd095fd453772ce8496439aff9fd794.jpeg)

I found the following approach, but I’m not sure whether it’s correct or not:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/8/68e6c8e4592672b74e174849935facbf9e67b8b5.jpeg)

But in the end, the material is displayed incorrectly in the scene:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/9/1/914c083ba578716e0d112598cf419774ac8e109f.jpeg)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 20, 2026, 8:09am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/2 "2026-01-20T08:09:38Z")

</div>

You must connect a `ReflectionBlock` to the **reflection** input for environment lighting to work as expected:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/b/7b74861e080d8416971e8d811eb86334b921777f.jpeg)

[https://nme.babylonjs.com/#423PH6#2](https://nme.babylonjs.com/#423PH6#2)

---

<div class="post-metadata">

**Author:** ![Sambler](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sambler/32/49632_2.png) [@Sambler](https://forum.babylonjs.com/u/Sambler)\
**Post date:** [January 20, 2026, 8:19am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/3 "2026-01-20T08:19:41Z")

</div>

It seems like this worked. But what about the brightness?  
The object in the scene is very dark, and if I increase the **Environment** intensity, all the realism is lost and it starts to look unnatural.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/9/09620a45dec142e19feca03b2175fb8dd61caaeb.jpeg)

**scene.environmentIntensity = 4.7;**

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/1/d/1d46f3a6707d68dfa8a239f0fff1dc1bbddf5c83.jpeg)

Can I increase the brightness specifically for this texture in the Node Manager?

---

<div class="post-metadata">

**Author:** ![Sambler](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sambler/32/49632_2.png) [@Sambler](https://forum.babylonjs.com/u/Sambler)\
**Post date:** [January 20, 2026, 8:26am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/4 "2026-01-20T08:26:40Z")

</div>

Maybe HDRI isn’t the right choice for my goals?  
Do you have any other ideas on how to improve the image and achieve maximum realism?

Or perhaps you have an example of an already well-configured **Node Material** texture that I could try to use (in **JSON format** ). I could then follow that setup as a reference for creating all the other textures in my project.

I would really appreciate it if you could help me.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/2/322ea82ddd940c67102617e88ca88792557a9c20.jpeg)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 20, 2026, 8:28am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/5 "2026-01-20T08:28:03Z")

</div>

These faces are in shadow, which is why they are darker. You can try reducing the **darkness** property of your shadow generator to lighten the shadows.

If you want to update the intensity only on the mesh material, you need to clone the environment texture and assign it to your material’s reflection texture. Note that the underlying GPU texture will not be cloned during the process, so you will not consume more memory (except for the new texture properties).

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 20, 2026, 8:30am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/6 "2026-01-20T08:30:01Z")

</div>

Also, how do you create your environment texture? Can you paste your code? It would be even better if you could reproduce it in the Playground, so we could help you better.

The environment texture is definitely the right method to use with PBR materials.

---

<div class="post-metadata">

**Author:** ![Sambler](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sambler/32/49632_2.png) [@Sambler](https://forum.babylonjs.com/u/Sambler)\
**Post date:** [January 20, 2026, 8:32am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/7 "2026-01-20T08:32:50Z")

</div>

> [@Evgeni\_Popov](#):
>
> Also, how do you create your environment texture? Can you paste your code? It would be even better if you could reproduce it in the Playground, so we could help you better.

I’m just creating an HDRI in the scene and that’s it.  
Should this be done in a different way?

```javascript
 // Окружающая текстура (HDRI)

  scene.environmentTexture = CubeTexture.CreateFromPrefilteredData(

    "/hdr/brown_photostudio_01_4k.env",

    scene,

  );

  scene.environmentIntensity = 0.7;

```

---

<div class="post-metadata">

**Author:** ![Sambler](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sambler/32/49632_2.png) [@Sambler](https://forum.babylonjs.com/u/Sambler)\
**Post date:** [January 20, 2026, 9:20am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/8 "2026-01-20T09:20:29Z")

</div>

I think I recreated the scene, and it seems to display correctly there.  
I copied all the lighting/shadows exactly like in my main project.

It works here, but in my project it still looks incorrect for some reason.

[https://playground.babylonjs.com/#6GB2NK](https://playground.babylonjs.com/#6GB2NK)

What else can I do to check this?

I can’t increase the intensity too much, because then all the realism is lost. But at the same time, I don’t want it to look like this in the shadows.

I also can’t add another **Directional Light** , because in that case the shadows won’t be cast correctly. I need only **one Directional Light** , and also a light source that would evenly illuminate the object from all sides (HDRI).

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/e/f/ef1d605a61057cb33061b59893bbd7fd3ac747f0.jpeg)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/5/f5c4086dc125cd8cc391e724ad822e370ef89706.jpeg)

hemiLight.setEnabled(false); - It’s disabled, just so you know.

I think the issue is with my texture.

I downloaded another texture, and it displays correctly:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/a/7/a7348c9dc3b92efde28a3fcab56190906382818f.jpeg)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 20, 2026, 1:14pm UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/9 "2026-01-20T13:14:55Z")

</div>

cc @PatrickRyan, I don’t quite understand why simply modifying the albedo texture (you only modified that one, right?) would have such an impact on the lighting…

---

<div class="post-metadata">

**Author:** ![Sambler](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sambler/32/49632_2.png) [@Sambler](https://forum.babylonjs.com/u/Sambler)\
**Post date:** [January 20, 2026, 1:28pm UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/10 "2026-01-20T13:28:00Z")

</div>

I only change the texture set; I don’t touch anything else.

In the first case, it looks very dark, even though the **Albedo** is clearly light.

In the second texture, the **Albedo** looks very similar, but the final result is much brighter.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/9/b/9b77eac9f58543cffc32976cca92aeb8230afa84.jpeg)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/f/0f8ff91e4da4e803b0ca077771d4e14869fc3a85.jpeg)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/c/bce967acd608991143656cde1e231e67bc2af51e.jpeg)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/d/fd67b8fa9c7d3d33669a215a98c6a123fa0e2e4c.jpeg)

---

<div class="post-metadata">

**Author:** ![Sambler](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sambler/32/49632_2.png) [@Sambler](https://forum.babylonjs.com/u/Sambler)\
**Post date:** [January 20, 2026, 1:40pm UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/11 "2026-01-20T13:40:49Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/9/792b7c00d300c52001f09c139ebdb53f6a46ddc3.png)

I found the cause of the darkness.

It was the **AO texture** — it was too dark.

Thanks everyone for the help 🙂

I hope this helps someone who runs into the same problem.

---

<div class="post-metadata">

**Author:** ![Sambler](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sambler/32/49632_2.png) [@Sambler](https://forum.babylonjs.com/u/Sambler)\
**Post date:** [January 27, 2026, 10:31am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/12 "2026-01-27T10:31:28Z")

</div>

After testing it several more times, I noticed that the resulting texture looked very different from the original. It turned out that I had connected the wrong output — I should have connected **DiffuseDir** instead of **Lighting**.

However, I ran into another issue: when the **Environment** lighting is enabled, the texture becomes completely black.

Could you please advise how this lighting issue can be fixed in this case?

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/3/6326c3e3c645e19e0a5845603162db3966f205e9.jpeg)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/f/bfca07b905e2cea88f82e7d56ba5535cdf846b38.jpeg)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/1/e/1e0eb876a1f0823cef7e87179fe49e3ff7736e0f.jpeg)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 27, 2026, 3:51pm UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/13 "2026-01-27T15:51:00Z")

</div>

Can you share a repro in the forum ?

---

<div class="post-metadata">

**Author:** ![Sambler](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sambler/32/49632_2.png) [@Sambler](https://forum.babylonjs.com/u/Sambler)\
**Post date:** [January 27, 2026, 5:11pm UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/14 "2026-01-27T17:11:54Z")

</div>

[https://nme.babylonjs.com/?webgpu#PATTDN](https://nme.babylonjs.com/?webgpu#PATTDN)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 27, 2026, 5:44pm UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/15 "2026-01-27T17:44:00Z")

</div>

Assigned @Evgeni\_Popov on January 27, 2026, 5:44pm UTC



---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 28, 2026, 8:57am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/16 "2026-01-28T08:57:07Z")

</div>

`diffuseDir` corresponds to the diffuse component of the direct lighting: if you don’t select any direct lights in the preview, you will see a black mesh.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/5/350cf21d26f04d16c2790598eb5c6cfbdffa10ef.png)

With some lights selected:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/8/d8896ad8bda57aad65f570f54745925b19c4d436.jpeg)

Note that all outputs of `PBRMetallicRoughness` are in linear space, except for **lighting**! That’s because we generally use **lighting** (which is the sum of all types of lights) as the final value we output from the shader. That’s why it’s already in gamma space and not in linear space. The other outputs assume you are going to use them in some calculations, so they must be used in linear space. It’s your responsibility to convert the final result to gamma space.

There’s a property on `FragmentOutput` to help with that:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/7/77f5f752a61f7547cdd8680bcd84194ae979132f.png)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 28, 2026, 8:57am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/17 "2026-01-28T08:57:11Z")

</div>

Unassigned @Evgeni\_Popov on January 28, 2026, 8:57am UTC



---

<div class="post-metadata">

**Author:** ![Sambler](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sambler/32/49632_2.png) [@Sambler](https://forum.babylonjs.com/u/Sambler)\
**Post date:** [January 28, 2026, 9:58am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/18 "2026-01-28T09:58:46Z")

</div>

I see this as well, but I need everything to work specifically with environment lighting.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/2/62a81dc7f3aaa3827cc964fa75bce7af1120056d.png)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 28, 2026, 10:19am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/19 "2026-01-28T10:19:58Z")

</div>

Then use `diffuseInd` instead (`Ind` is for `Indirect`, which is the environment):

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/a/2ae22ba687785ec10916a5dcb1eb54d562a243dd.jpeg)

---

<div class="post-metadata">

**Author:** ![Sambler](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sambler/32/49632_2.png) [@Sambler](https://forum.babylonjs.com/u/Sambler)\
**Post date:** [January 28, 2026, 10:29am UTC](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154/20 "2026-01-28T10:29:12Z")

</div>

Yes, I tried that as well. But in the end, the texture in the scene doesn’t look the same as the original texture. Here is a clear example comparing the original texture and how it looks in the scene.

Maybe I’m doing something wrong with the lighting? Or something else — I don’t really understand.

```javascript
  scene.environmentTexture = CubeTexture.CreateFromPrefilteredData(
    "/hdr/brown_photostudio_01_4k.env",
    scene,
  );
  scene.environmentIntensity = 1.0;

```

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/e/c/ecb7f51de1eead75fbd805545a98062f488a2cdc.jpeg)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/a/3a0d16feb49b2f8da26e4c6cb72abdd0decadb86.jpeg)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/a/a/aa33055f210fc7bb1c87923081e1b72890c8cb02.jpeg)

[Next page](https://forum.babylonjs.com/t/black-pbr-texture-under-environment-lighting-in-node-material/62154.md?page=2)
