# Specular issue for Directional Light

**URL:** <https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707>\
**Category:** Bugs\
**Tags:** lighting\
**Created:** [May 28, 2025, 8:16pm UTC](https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707 "2025-05-28T20:16:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tawibox](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tawibox/32/22881_2.png) [@tawibox](https://forum.babylonjs.com/u/tawibox)\
**Post date:** [May 28, 2025, 8:16pm UTC](https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707/1 "2025-05-28T20:16:48Z")

</div>

Hey community,

While exploring Babylon’s new rectangular area light, I also discovered some potential improvements for the `Directional Light` .

Please see these render tests:

 ![AnisotropyBarnLamp_contactSheet_9_texted](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/1/7/175f96f19ac344c6487508d46337f5c463e86d7a.jpeg)

 ![DamagedHelmet_contactSheet_9_texted](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/4/84fb98c12f39eb299d52b7ca71b322173577cdba.jpeg)

 ![FlightHelmet_contactSheet_9_texted](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/5/6/5670721175e048c6d5ed6656dd4c52cf3d6f543e.jpeg)

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

The bottom row shows the directional light render tests in Babylon, while the top two rows display area light tests from both Babylon and Blender.

**The specular pass of this light is unexpectedly empty. I expected it to have similar pass separation to the area light in Blender.**

The diffuse pass rendering looks all working fine as expected.

* * *

**PS:** another post regarding to area light issue: [Specular issue for Rectangular Area Light](https://forum.babylonjs.com/t/specular-channel-issue-on-rectangular-area-light/58706)

Please let me know what you think.  
Many thanks,  
Tawibox

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [May 28, 2025, 8:58pm UTC](https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707/2 "2025-05-28T20:58:36Z")

</div>

Assigned @srzerbetto on May 28, 2025, 8:58pm UTC



---

<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:** [June 3, 2025, 11:02pm UTC](https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707/3 "2025-06-03T23:02:45Z")

</div>

Can you share a repro exhibiting the wrong behavior ?

A directional light being a punctual light it will only appear like a simple dot on a glossy surface and a broader “patch” on a rough one.

---

<div class="post-metadata">

**Author:** ![tawibox](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tawibox/32/22881_2.png) [@tawibox](https://forum.babylonjs.com/u/tawibox)\
**Post date:** [June 4, 2025, 12:07am UTC](https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707/4 "2025-06-04T00:07:19Z")

</div>

@sebavan

You can use this link for reference!

> **[Babylon.js Playground](https://playground.babylonjs.com/#T7FXR8%2364)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

Sorry for the confusion, I wasn’t specifying the shape of the highlight.

I was specifying the color data in the `diffuse` and `specular` channels of the directional light. When I tried to isolate these channels, I discovered that the `specular` pass was completely empty, while all the color data was in the `diffuse` pass:  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/8/08bd1e3b4649bfb2c3135749a4ddf5568f8203e5.png)

I expected these two channels to contain different data, similar to other DCC software such like Blender:

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

Hope this makes sense.  
Many thanks,  
Tawibox

---

<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:** [June 4, 2025, 12:30am UTC](https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707/5 "2025-06-04T00:30:11Z")

</div>

What do you use to isolate each channel ?

---

<div class="post-metadata">

**Author:** ![tawibox](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tawibox/32/22881_2.png) [@tawibox](https://forum.babylonjs.com/u/tawibox)\
**Post date:** [June 4, 2025, 12:38am UTC](https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707/6 "2025-06-04T00:38:40Z")

</div>

@sebavan

To have more control over lighting, I sometimes need to fine-tune only the specular amount when they appear too strong on particular objects.

This is a common practice in VFX and 3D animation studios. I hope we can enable this feature in Babylon.js, not just for directional lights but also for other light types such as area lights and spot lights. This functionality should be consistent across all light types.

In general, I believe it would be beneficial if Babylon.js could align this feature with other DCC software such as Blender, Maya V-Ray, Maya Arnold as well as other game engines.

Also, it seems strange that while this property exists in the light object, it doesn’t appear to have any effect.

Hope this makes sense 🙂  
Tawibox

---

<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:** [June 4, 2025, 12:42am UTC](https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707/7 "2025-06-04T00:42:50Z")

</div>

What properties do you use on lights or materials to achieve your goals ? My guess is that you are not using the correct one.

---

<div class="post-metadata">

**Author:** ![tawibox](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tawibox/32/22881_2.png) [@tawibox](https://forum.babylonjs.com/u/tawibox)\
**Post date:** [June 4, 2025, 12:54am UTC](https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707/8 "2025-06-04T00:54:39Z")

</div>

@sebavan

These 2:  
\*\*

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/e/3ec5d89c9cbeb5ca3f1cf70007fa7666adb74974.png)  
\*\*

I am quite certain these two properties are the correct ones, unless they serve different purposes than expected.

The same two properties are already partially working for the `rectAreaLight`, though there are some issues with the color data. @srzerbetto is currently working on fixing this issue, as discussed here: [Specular issue for Rectangular Area Light](https://forum.babylonjs.com/t/specular-issue-for-rectangular-area-light/58706)

Please let me know if you need further explanations.  
Tawibox

---

<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:** [June 4, 2025, 12:57am UTC](https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707/9 "2025-06-04T00:57:49Z")

</div>

Ohhhhh, from the screenshots you might be using diffuse and specular colors on lights.

The pbr material only supports the diffuseColor, the other one is not used.

You would need to use diffuseIntensity as well as specularIntensity on the material to tweak it.

---

<div class="post-metadata">

**Author:** ![tawibox](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tawibox/32/22881_2.png) [@tawibox](https://forum.babylonjs.com/u/tawibox)\
**Post date:** [June 4, 2025, 1:08am UTC](https://forum.babylonjs.com/t/specular-issue-for-directional-light/58707/10 "2025-06-04T01:08:32Z")

</div>

> [@sebavan](#):
>
> from the screenshots you might be using diffuse and specular colors on lights.

Yes!!

Ah, I understand now! This is quite different from Blender’s approach. It would be nice if all platforms handled this consistently!

So, am I correct in assuming that once the `rectAreaLight` issue is fixed, I should control diffuse and specular levels through the PBRMaterial properties rather than through the lights themselves too?

Thank you very much for the clarification.  
Tawibox
