# Multiple Scattering Sky Texture

**URL:** <https://blenderartists.org/t/multiple-scattering-sky-texture/1596166>\
**Category:** Lighting and Rendering\
**Created:** [June 4, 2025, 10:12am UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166 "2025-06-04T10:12:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolf](https://blenderartists.org/user_avatar/blenderartists.org/wolf/32/1490030_2.png) [@wolf](https://blenderartists.org/u/wolf)\
**Post date:** [June 4, 2025, 10:12am UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/1 "2025-06-04T10:12:01Z")

</div>

Hello,  
I’m currently in the process of bringing a new Sky Texture into Blender, this time the model takes into account multiple scattering. This topic serves for feedback purposes.

 ![Sky](https://blenderartists.org/uploads/default/original/4X/b/c/0/bc0e5549ee6c86ab25450a6e08efd6cfae0d4b7f.webp)

The model is based on the work here: [Real-time spectral rendering of the atmospheric medium](https://fgarlin.com/blog/spectral-sky/), I’m just re-implementing his ShaderToy code.  
I already implemented the model in Python and you can test it [here](https://gitlab.com/marcopavanello/multiscattering-sky).  
Right now I’m exploring the possible ways to implement it into Blender.  
Any feedback is appreciated along the way, I’ll keep the topic updated!

---

<div class="post-metadata">

**Author:** ![claus](https://blenderartists.org/user_avatar/blenderartists.org/claus/32/868691_2.png) [@claus](https://blenderartists.org/u/claus)\
**Post date:** [June 4, 2025, 10:17am UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/2 "2025-06-04T10:17:57Z")

</div>

Nice! Where can I read on issues with the current sky texture? i.e. what is this multiple scattering about?

---

<div class="post-metadata">

**Author:** ![wolf](https://blenderartists.org/user_avatar/blenderartists.org/wolf/32/1490030_2.png) [@wolf](https://blenderartists.org/u/wolf)\
**Post date:** [June 4, 2025, 11:32am UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/3 "2025-06-04T11:32:19Z")

</div>

The improved Nishita model Sky Texture I implemented [here](https://devtalk.blender.org/t/new-sky-texture/12708) (with the help of a lot of developers) is making use of single scattering, meaning you get wrong radiance all over the place, and the twilight Earth shadow will be black because of that. Multiple scattering fixes these issues, making the sky look much closer to the ground truth.  
This new implementation specifically makes use of 4 wavelengths, which is lower than 21 wavelengths we use for Nishita Sky Texture, but thanks to the “hero wavelength” method described [here](https://fgarlin.com/blog/spectral-sky/), we get pretty good results.

---

<div class="post-metadata">

**Author:** ![Tell](https://blenderartists.org/user_avatar/blenderartists.org/tell/32/761711_2.png) [@Tell](https://blenderartists.org/u/Tell)\
**Post date:** [June 6, 2025, 6:41am UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/4 "2025-06-06T06:41:55Z")

</div>

Oh and I though that the current one was “perfect”, but apparently not 🙂  
Though there are two things with the current one that could also maybe be fixed with this new one? First is to have the option to have a ground at a color of your choosing (and maybe even a texture mapped somehow?) and secondly that the current one is really really bright, for it to be useful for me I have to bring it down to 0.1. Is the intended somehow in a physically correct manner maybe?

---

<div class="post-metadata">

**Author:** ![wolf](https://blenderartists.org/user_avatar/blenderartists.org/wolf/32/1490030_2.png) [@wolf](https://blenderartists.org/u/wolf)\
**Post date:** [June 6, 2025, 6:56am UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/5 "2025-06-06T06:56:31Z")

</div>

Hello, thank you for your feedback :).  
Adding a texture as a ground is a really specific use-case, you can just add a plane for that purpose, it’s better to keep the Sky Texture as minimal as possible.  
The current one uses accurate lighting values, meaning you should not lower its brightness but rather the exposure of the scene, you can find such value under Color Management in the render setting.  
Hope it helps.

---

<div class="post-metadata">

**Author:** ![Tell](https://blenderartists.org/user_avatar/blenderartists.org/tell/32/761711_2.png) [@Tell](https://blenderartists.org/u/Tell)\
**Post date:** [June 6, 2025, 7:19am UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/6 "2025-06-06T07:19:16Z")

</div>

Yeah I was just thinking it would be nice for those times when you want it, but tbh it’s quite easy to add that ground yourself!

 ![Screenshot 2025-06-06 091332](https://blenderartists.org/uploads/default/original/4X/5/9/a/59ac547c7bb7dc023ff048b80a2394fbf4546bbb.png)

Though I’m curious about the brightness, in what way is that the real world sun value? I mean what’s the reference in Blender when everything else seem to be balanced around having the exposure to 0, like the regular sun lamp, all the HDRIs I’ve ever downloaded etc? 🙂

---

<div class="post-metadata">

**Author:** ![wolf](https://blenderartists.org/user_avatar/blenderartists.org/wolf/32/1490030_2.png) [@wolf](https://blenderartists.org/u/wolf)\
**Post date:** [June 6, 2025, 7:43am UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/7 "2025-06-06T07:43:56Z")

</div>

The RGB values are straight out of the sky model, meaning without any hack, and back then when implementing it we checked it was the correct physical values.  
Most of HDRIs are not calibrated to match the physical values AFAIK.

---

<div class="post-metadata">

**Author:** ![Tell](https://blenderartists.org/user_avatar/blenderartists.org/tell/32/761711_2.png) [@Tell](https://blenderartists.org/u/Tell)\
**Post date:** [June 6, 2025, 8:16am UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/8 "2025-06-06T08:16:14Z")

</div>

Okay perfect, now I know. It’s great to have a real world reference lighting like this so thank you for that. 🙂 Looking forward to an even better reference lighting when you’re done with this version!

---

<div class="post-metadata">

**Author:** ![wolf](https://blenderartists.org/user_avatar/blenderartists.org/wolf/32/1490030_2.png) [@wolf](https://blenderartists.org/u/wolf)\
**Post date:** [June 30, 2025, 12:16pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/9 "2025-06-30T12:16:53Z")

</div>

Hello everyone 😊, I’m glad to announce that I finally started implementing the Multiple Scattering sky texture in Blender!  
You can check and try the PR here:  
[https://projects.blender.org/blender/blender/pulls/140480](https://projects.blender.org/blender/blender/pulls/140480)

## Difference

Left is Single Scattering (Nishita), right is the new Multiple Scattering model:

 ![Sky difference](https://new.blenderartists.org/uploads/default/original/4X/a/6/f/a6fff6794ca21426b0f0e1ffaf39651c3d82b73d.webp)

---

<div class="post-metadata">

**Author:** ![ThomasKole](https://blenderartists.org/user_avatar/blenderartists.org/thomaskole/32/1388979_2.png) [@ThomasKole](https://blenderartists.org/u/ThomasKole)\
**Post date:** [June 30, 2025, 3:04pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/10 "2025-06-30T15:04:34Z")

</div>

Impressive, I’ve always disliked the odd twilight green/yellow from the single-scattering sky texture. Very much look forward to this 🙂

---

<div class="post-metadata">

**Author:** ![Lumpengnom](https://blenderartists.org/user_avatar/blenderartists.org/lumpengnom/32/1131385_2.png) [@Lumpengnom](https://blenderartists.org/u/Lumpengnom)\
**Post date:** [June 30, 2025, 3:13pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/11 "2025-06-30T15:13:40Z")

</div>

Yeah, this looks so much better than the brown soup you get with the current one.

---

<div class="post-metadata">

**Author:** ![wolf](https://blenderartists.org/user_avatar/blenderartists.org/wolf/32/1490030_2.png) [@wolf](https://blenderartists.org/u/wolf)\
**Post date:** [July 14, 2025, 1:26pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/12 "2025-07-14T13:26:32Z")

</div>

The implementation of the new sky texture is quite complete!  
Now it’s time to do some last checks and it should be ready to merge into Blender 5.0!

I also added support for the Sun Disc to render below elevation 0 degrees:

 ![Old](https://blenderartists.org/uploads/default/original/4X/7/e/f/7efacf94a2fc6df7b534b20e0c149874ce871ee0.jpeg)  
 ![New](https://blenderartists.org/uploads/default/original/4X/b/f/2/bf2d96b96129c7854b846bb3a88bf06bcb845e20.jpeg)

---

<div class="post-metadata">

**Author:** ![marcatore](https://blenderartists.org/user_avatar/blenderartists.org/marcatore/32/20313_2.png) [@marcatore](https://blenderartists.org/u/marcatore)\
**Post date:** [July 14, 2025, 1:47pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/13 "2025-07-14T13:47:01Z")

</div>

Just to know: what’s the reason to have the sun also for the part below the horizon?  
Will there be the choice to turn it on or off?

---

<div class="post-metadata">

**Author:** ![wolf](https://blenderartists.org/user_avatar/blenderartists.org/wolf/32/1490030_2.png) [@wolf](https://blenderartists.org/u/wolf)\
**Post date:** [July 14, 2025, 1:59pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/14 "2025-07-14T13:59:37Z")

</div>

If you are, let’s say, at an altitude of 10 km, then you will see the Sun below the line of 0 degrees elevation.  
Let me edit the previous post, by “horizon” I meant an elevation of 0 degrees, currently Nishita is hiding the Sun disc below that elevation.

---

<div class="post-metadata">

**Author:** ![wolf](https://blenderartists.org/user_avatar/blenderartists.org/wolf/32/1490030_2.png) [@wolf](https://blenderartists.org/u/wolf)\
**Post date:** [July 14, 2025, 2:15pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/15 "2025-07-14T14:15:52Z")

</div>

Left is Single Scattering (Nishita), right is Multiple Scattering:

 ![Old](https://blenderartists.org/uploads/default/original/4X/a/a/b/aab7986d324af365329e26622bc74356184fecea.jpeg)  
 ![New](https://blenderartists.org/uploads/default/original/4X/2/3/f/23f5dbad7f79f5527170119e274af3e90550c3b5.jpeg)

 ![Old](https://blenderartists.org/uploads/default/original/4X/0/b/1/0b1e9d8cb2a8ce59a921144e03eebf7fd1371f19.jpeg)  
 ![New](https://blenderartists.org/uploads/default/original/4X/2/c/b/2cb4c6aa6ce96fcd07d393f43fa282b7c7f8b3e9.jpeg)

 ![Old](https://blenderartists.org/uploads/default/original/4X/c/1/4/c1457f91ceacced5ebba2e019368087b66769e6f.jpeg)  
 ![New](https://blenderartists.org/uploads/default/original/4X/2/5/c/25c6e1cc553342a5df52209e21890355d0fa59e5.jpeg)

---

<div class="post-metadata">

**Author:** ![marcatore](https://blenderartists.org/user_avatar/blenderartists.org/marcatore/32/20313_2.png) [@marcatore](https://blenderartists.org/u/marcatore)\
**Post date:** [July 14, 2025, 2:23pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/16 "2025-07-14T14:23:56Z")

</div>

ok…but (just to learn something…not be presumptuous)  
…often, doing archviz and environment, there is a, let’s say, plane where put over all the stuffs (buildings, people, cars, vegetation and so on).  
That plane is often not so big (in the Earth scale), so this plane is not obstructing the sun…so…when the sun goes down the 0° elevation, if the sun still be fully visibile doesn’t create some unwanted lighting directions?

---

<div class="post-metadata">

**Author:** ![marcatore](https://blenderartists.org/user_avatar/blenderartists.org/marcatore/32/20313_2.png) [@marcatore](https://blenderartists.org/u/marcatore)\
**Post date:** [July 14, 2025, 2:24pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/17 "2025-07-14T14:24:42Z")

</div>

really nice!!

---

<div class="post-metadata">

**Author:** ![wolf](https://blenderartists.org/user_avatar/blenderartists.org/wolf/32/1490030_2.png) [@wolf](https://blenderartists.org/u/wolf)\
**Post date:** [July 14, 2025, 2:27pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/18 "2025-07-14T14:27:37Z")

</div>

That’s a good question @marcatore 😊.  
Yes for a simple archviz scene the Sun below the plane surface will illuminate it from below, but you can always set the `Sun Intensity` value to 0 if wanted.  
The thing is that we want the Sun to go below for aerial scenes, you want the Sun disc to be visible until it goes beyond the Earth’s surface.  
Hope it makes sense.

---

<div class="post-metadata">

**Author:** ![marcatore](https://blenderartists.org/user_avatar/blenderartists.org/marcatore/32/20313_2.png) [@marcatore](https://blenderartists.org/u/marcatore)\
**Post date:** [July 14, 2025, 2:46pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/19 "2025-07-14T14:46:22Z")

</div>

Yes…for aerial view or big scale scenes it will have a great sense…for other scenario, suggesting to put sun intensity to 0 when sun is near the 0° elevation seems a bit hacky.

Doing some testing (really really nothing scientific style) with just the sky (Nishita) to do lighting and shadows and this results:

Here the sun has full disc and it’s projecting shadow

 ![image](https://blenderartists.org/uploads/default/original/4X/c/7/5/c75c04377cec711ba2e8c93cf17a5f85466931f0.jpeg)

Here the sun starts to have not a full disc anymore (so part of the sun is below 0° elevation while the bigger part still over)

 ![image](https://blenderartists.org/uploads/default/original/4X/d/6/c/d6c8dd7751dee90f0139fa2decd3fd629d441ffa.jpeg)

Here 1/4 of the disc is hidden by horizon and the shadow become less visible as less contribution in lighting coming from the sun (my opinion)

 ![image](https://blenderartists.org/uploads/default/original/4X/5/f/5/5f5fdee322a6555ffdee2e744bf638012f0a238e.jpeg)

Here the sun has its center below the horizon and it’s not contributing to lighting

 ![image](https://blenderartists.org/uploads/default/original/4X/2/9/d/29d05d4b9c7de07f06eae88abe9932ab0b81b312.jpeg)

Ok, I could set the Sun Intensity to 0 when I go below the horizon (actually copying the Nishita model) but I had to do manually.  
If this could be added automatically with a user choice, I think it will be great.

- aerial (Earth scene scale) ON you have the sun full disc below the horizon
- aerial (Earth scene scale) OFF you copy the Nishita Sun Disc behaviour

As you’re in development process, do you think it’s doable or could have sense?

---

<div class="post-metadata">

**Author:** ![wolf](https://blenderartists.org/user_avatar/blenderartists.org/wolf/32/1490030_2.png) [@wolf](https://blenderartists.org/u/wolf)\
**Post date:** [July 14, 2025, 3:49pm UTC](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166/20 "2025-07-14T15:49:54Z")

</div>

That’s not an issue since doing an archviz scene requires you to have an altitude set near sea level 0 m, so the Sun will still disappear once it’s below the horizon (slightly less than 0 degrees).  
I am always against adding extra UI elements, especially if they don’t add any new feature that can be already achieved with the already available elements.  
By default I think the Sky Texture should behave like a real sky.

[Next page](https://blenderartists.org/t/multiple-scattering-sky-texture/1596166.md?page=2)
