# Idea. Upgrading light in Unreal Engine- Diffraction of light

**URL:** <https://forums.unrealengine.com/t/idea-upgrading-light-in-unreal-engine-diffraction-of-light/1246352>\
**Category:** Rendering\
**Tags:** unreal-engine, Lighting\
**Created:** [July 31, 2023, 9:44pm UTC](https://forums.unrealengine.com/t/idea-upgrading-light-in-unreal-engine-diffraction-of-light/1246352 "2023-07-31T21:44:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiger199191](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tiger199191](https://forums.unrealengine.com/u/tiger199191)\
**Post date:** [July 31, 2023, 9:44pm UTC](https://forums.unrealengine.com/t/idea-upgrading-light-in-unreal-engine-diffraction-of-light/1246352/1 "2023-07-31T21:44:56Z")

</div>

The diffraction of light- for now, it’s not in Unreal Engine. In theory it could be non ray-tracing. I know that ray-tracing support diffraction , but that can be cheaper method non raytracing

 ![bandicam 2023-08-01 00-22-11-991](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/c/9dc03113219ecdc3c4273f7ed9c5c90407721a7d.jpeg)  
Now if light bump from surface- it diffract on white and black, which not correct. White+black= grey  
If "white " light bump from surface, it should diffract on all waves- RGB and other colors, but basic like RGB .  
If you, tech specs see the sun of light on surface, you ll see that light on surface are “pixelated” on all spectrum/colors. I searched diffraction on google, so here is basic idea

> **[Simulating Diffraction Patterns with the Angular Spectrum Method and Python](https://rafael-fuente.github.io/simulating-diffraction-patterns-with-the-angular-spectrum-method-and-python.html)**
>
> In this project we'll show how to compute the Diffraction Patterns with the Angular Spectrum Method and Python.

In conclusion, if that can be introduced- Unreal will have more “colorful” natural image/post process.

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [August 1, 2023, 5:56pm UTC](https://forums.unrealengine.com/t/idea-upgrading-light-in-unreal-engine-diffraction-of-light/1246352/2 "2023-08-01T17:56:39Z")

</div>

Do you mean caustics?

---

<div class="post-metadata">

**Author:** ![tiger199191](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tiger199191](https://forums.unrealengine.com/u/tiger199191)\
**Post date:** [August 1, 2023, 6:50pm UTC](https://forums.unrealengine.com/t/idea-upgrading-light-in-unreal-engine-diffraction-of-light/1246352/3 "2023-08-01T18:50:06Z")

</div>

Not. Diffraction. From my view caustics is more heavy for calculating every pixel, instead of this Unreal can introduce diffraction of light- which will calculate dynamically, on fly , because light have waves/ocean nature, In theory. It’s same like Nanite triangles, only should be pixels.

- about light, light not consist on RGB- it have all spectrum R G B (red green blue)  
+, orange, yellow, , indigo, violet  
RGB color dogma- is primitive standard introduced way before

---

<div class="post-metadata">

**Author:** ![tiger199191](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tiger199191](https://forums.unrealengine.com/u/tiger199191)\
**Post date:** [August 1, 2023, 7:07pm UTC](https://forums.unrealengine.com/t/idea-upgrading-light-in-unreal-engine-diffraction-of-light/1246352/4 "2023-08-01T19:07:12Z")

</div>

Oh yes, that what I mean, and Unreal lack of it!  
In Engine white light bumps to surfaces , and result = white… In real world , if something hit surface- diffract on all spectrum. In theory it’s easy to introduce , but don’t know how technically. From my view something like nanite or GI…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/2/f72a4db68f0402c162cd35972035018290f9f40c.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/9/a2984150457dec86d09d29a78b9eb111778bc6b0.jpeg)  
Spider web

---

<div class="post-metadata">

**Author:** ![tiger199191](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tiger199191](https://forums.unrealengine.com/u/tiger199191)\
**Post date:** [August 1, 2023, 8:29pm UTC](https://forums.unrealengine.com/t/idea-upgrading-light-in-unreal-engine-diffraction-of-light/1246352/5 "2023-08-01T20:29:50Z")

</div>

Further thoughts. If that kind of system would be introduced, no more strange small bokeh, and avoiding manual lens flares. It can be something like this in auto-mode  
[https://www.youtube.com/watch?v=oOxFoeXiiSA](https://www.youtube.com/watch?v=oOxFoeXiiSA)

So in Unreal Engine white color, is opposite of black… And it mixing around white and black. **It not have spectrum.**  
The right way to do, to put in white light all color/spectrum from Red to Violet. From far view it’s 2 white lights/colors, but if we zoom details, 1 have spectrum, and another haven’t

---

<div class="post-metadata">

**Author:** ![tiger199191](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tiger199191](https://forums.unrealengine.com/u/tiger199191)\
**Post date:** [August 6, 2023, 4:41pm UTC](https://forums.unrealengine.com/t/idea-upgrading-light-in-unreal-engine-diffraction-of-light/1246352/6 "2023-08-06T16:41:45Z")

</div>

![20230806_190721](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/8/098d61820b9c79ffb362a5625f649c4ba72b6810.jpeg)  
 ![20230806_1907211](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/8/53883ce2b9dc1c8a519119d17daf0359e7708f8a.jpeg)  
 ![20230806_185120](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/f/e9fee668157d959c4431123c2dc5afdf58e8cb15.jpeg) Leather  
Photos created with phone, so the quality… It’s kind of noise but on surfaces. It’s so microscopic, that you not see if not look closely.

---

<div class="post-metadata">

**Author:** ![tiger199191](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tiger199191](https://forums.unrealengine.com/u/tiger199191)\
**Post date:** [August 9, 2023, 4:51pm UTC](https://forums.unrealengine.com/t/idea-upgrading-light-in-unreal-engine-diffraction-of-light/1246352/7 "2023-08-09T16:51:14Z")

</div>

Further ideas . Logic. Sunlight lighting on 360 degree\> Lights diffract on 360 degree, and diffraction reflect on 360 degree.

 ![Untitled11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/0/b5072c9176ad9477c72db68f4d7e77eaf9ad6693.jpeg)  

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/2/3e2d2457bac52ecb263585acaa7c9cce5c8e0bff.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/2/3e2d2457bac52ecb263585acaa7c9cce5c8e0bff.mp4)
  
From far view yes, we can say -yes , it look like white. . How we see , white from close view it’s not “white”.  
 ![20230809_184232](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/1/401ac7b588ad4a2b49c4d972ce63e84a0932107e.jpeg)
