# Megalights support for anisoptropic materials 

**URL:** <https://forums.unrealengine.com/t/megalights-support-for-anisoptropic-materials/2722287>\
**Category:** Rendering\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [April 9, 2026, 1:54am UTC](https://forums.unrealengine.com/t/megalights-support-for-anisoptropic-materials/2722287 "2026-04-09T01:54:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 9, 2026, 1:54am UTC](https://forums.unrealengine.com/t/megalights-support-for-anisoptropic-materials/2722287/1 "2026-04-09T01:54:40Z")

</div>

Hello folks,

We have noticed that, with MegaLights enabled, our anisotropic materials were rendering without any anisotropy.

After investigating, I noticed SUPPORTS\_ANISOTROPIC\_MATERIALS was not passed to FShadeLightSamplesCS::ModifyCompilationEnvironment. Adding it fixes the issue.

Was this intentional? Is there any side effects we should know about?

Note that we are not using Substrate, but Substrate seems to have the same issue.

Thanks

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 9, 2026, 1:54am UTC](https://forums.unrealengine.com/t/megalights-support-for-anisoptropic-materials/2722287/2 "2026-04-09T01:54:43Z")

</div>

**Steps to Reproduce**

- Enable MegaLights.
- Create a sphere and apply a material that uses anisotropy
- Add point light to the scene
- Notice the lack of anisotropy  
[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![TimStullich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimStullich](https://forums.unrealengine.com/u/TimStullich)\
**Post date:** [April 13, 2026, 10:36am UTC](https://forums.unrealengine.com/t/megalights-support-for-anisoptropic-materials/2722287/3 "2026-04-13T10:36:18Z")

</div>

Hi Olivier,

Thanks for reaching out. Can you please send me a project with the setup you describe? That way, I can quickly check the differences and potentially submit a change to get anisotropy working for Megalights again.

Cheers,

Tim

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![TimStullich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimStullich](https://forums.unrealengine.com/u/TimStullich)\
**Post date:** [April 14, 2026, 12:50pm UTC](https://forums.unrealengine.com/t/megalights-support-for-anisoptropic-materials/2722287/4 "2026-04-14T12:50:38Z")

</div>

Hi Olivier,

Thanks for the quick turnaround. I verified that material anisotropy is either broken or disabled for a specific reason, so I filed a Jira with the dev team to get some clarification. I also proposed your fix to them, so I am looking for feedback from them on it. You can follow along via the public issues link here: [https://issues.unrealengine.com/issue/UE\-373716\](https://issues.unrealengine.com/issue/UE%5C-373716%5C). Please let me know if you have any further questions.

Cheers,

Tim

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![TimStullich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimStullich](https://forums.unrealengine.com/u/TimStullich)\
**Post date:** [April 15, 2026, 7:39am UTC](https://forums.unrealengine.com/t/megalights-support-for-anisoptropic-materials/2722287/5 "2026-04-15T07:39:00Z")

</div>

That could work as a temporary workaround. I will close out this case then, but keep an eye on the public issue tracker for any updates. If you haven’t seen any traction in a reasonable timeframe, feel free to create a case and ping me on it.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 13, 2026, 2:15pm UTC](https://forums.unrealengine.com/t/megalights-support-for-anisoptropic-materials/2722287/6 "2026-04-13T14:15:41Z")

</div>

Here you go. Hopefully everything is in there. Note that I’ve used a point light here, but it applies to all light types, including directional if you enable the directional support Cvar (r.MegaLights.DirectionalLights 1).

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 13, 2026, 2:17pm UTC](https://forums.unrealengine.com/t/megalights-support-for-anisoptropic-materials/2722287/7 "2026-04-13T14:17:21Z")

</div>

Upload somehow didn’t work.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 14, 2026, 1:02pm UTC](https://forums.unrealengine.com/t/megalights-support-for-anisoptropic-materials/2722287/8 "2026-04-14T13:02:04Z")

</div>

Great thanks! In the mean time I changed my fix a little to support toggling on/off anisotropy support at runtime (r.AnisotropicMaterials 0) by implementing a shader permutation, similar to what is done for the FClusteredShadingPS shader.

[Attachment Removed]
