# 4.11.2 - DFAO and Foliage shading issues

**URL:** <https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [May 2, 2016, 4:48pm UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764 "2016-05-02T16:48:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maximum-Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maximum-Dev](https://forums.unrealengine.com/u/Maximum-Dev)\
**Post date:** [May 2, 2016, 4:48pm UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/1 "2016-05-02T16:48:37Z")

</div>

Hi,

I have upgraded to 4.11.2 but I’ve got two issues with it.

First, I don’t see 2 Sided foliage shading anymore, is “2 Sided” the same “2 Sided foliage shading” model we had in 4.10?

> **[ImgFuel – Your 100% Free picture Editor and image Converter](https://imgfuel.com/)**
>
> Free Picture Editing and Image conversion webservice for all your needs. This is 100% free to use as a photo editor and picture converter.

Second, No DFAO

> **[ImgFuel – Your 100% Free picture Editor and image Converter](https://imgfuel.com/)**
>
> Free Picture Editing and Image conversion webservice for all your needs. This is 100% free to use as a photo editor and picture converter.

DFAO + Visualizer

> **[ImgFuel – Your 100% Free picture Editor and image Converter](https://imgfuel.com/)**
>
> Free Picture Editing and Image conversion webservice for all your needs. This is 100% free to use as a photo editor and picture converter.

DFAO + Lit

> **[ImgFuel – Your 100% Free picture Editor and image Converter](https://imgfuel.com/)**
>
> Free Picture Editing and Image conversion webservice for all your needs. This is 100% free to use as a photo editor and picture converter.

Why so dark?

---

<div class="post-metadata">

**Author:** ![Maximum-Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maximum-Dev](https://forums.unrealengine.com/u/Maximum-Dev)\
**Post date:** [May 3, 2016, 2:29pm UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/2 "2016-05-03T14:29:30Z")

</div>

Bump…

---

<div class="post-metadata">

**Author:** ![Maximum-Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maximum-Dev](https://forums.unrealengine.com/u/Maximum-Dev)\
**Post date:** [May 3, 2016, 2:44pm UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/3 "2016-05-03T14:44:49Z")

</div>

I noticed something it wrong with skylight itself. Not DFAO.

Stationary skylight (No DFAO)

> **[ImgFuel – Your 100% Free picture Editor and image Converter](https://imgfuel.com/)**
>
> Free Picture Editing and Image conversion webservice for all your needs. This is 100% free to use as a photo editor and picture converter.

Movable skylight (No DFAO)

> **[ImgFuel – Your 100% Free picture Editor and image Converter](https://imgfuel.com/)**
>
> Free Picture Editing and Image conversion webservice for all your needs. This is 100% free to use as a photo editor and picture converter.

Reflections look really wrong with movable.

Edit: The problem appears only on foliage. Might be related to my first question in OP.

---

<div class="post-metadata">

**Author:** ![keiii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@keiii](https://forums.unrealengine.com/u/keiii)\
**Post date:** [May 3, 2016, 2:51pm UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/4 "2016-05-03T14:51:00Z")

</div>

We are having the same problem here in our project! We updated the project from 4.10.4 to 4.11.2 and now the two-sided foliage material is not working anymore! Please we need fix! Thanks!

 ![material.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/a/4a087fb055a48d18a60417828a2c7e806343a07e.png)

---

<div class="post-metadata">

**Author:** ![lucota90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lucota90](https://forums.unrealengine.com/u/lucota90)\
**Post date:** [May 3, 2016, 4:19pm UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/5 "2016-05-03T16:19:09Z")

</div>

![Capturar.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/7/0e7799993f8b779d5dddb94343cff590ce9ff94f.png)

I also had problems with foliage, tryed to import a 4.10 project into 4.11 and the shading model was Two Sided Foliage shading too.  
Got this errors:

Error [SM5] Material.usf(1592,30): warning X3206: implicit truncation of vector type  
Error [SM5] ParticleSpriteVertexFactory.usf(281,39): error X3018: invalid subscript ‘TexCoord\_Unflipped’  
Error [SM5] ParticleGPUSpriteVertexFactory.usf(503,39): error X3018: invalid subscript ‘TexCoord\_Unflipped’

---

<div class="post-metadata">

**Author:** ![lucota90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lucota90](https://forums.unrealengine.com/u/lucota90)\
**Post date:** [May 3, 2016, 6:29pm UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/6 "2016-05-03T18:29:14Z")

</div>

/\ We are from the same project hehe, same problem.  
I unchecked the ‘Used with Particle Sprites’ (don’t know why this was checked, but it worked on 4.10 anyway) and it compiled with no errors =)!

---

<div class="post-metadata">

**Author:** ![Maximum-Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maximum-Dev](https://forums.unrealengine.com/u/Maximum-Dev)\
**Post date:** [May 6, 2016, 12:01am UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/7 "2016-05-06T00:01:33Z")

</div>

Another comparison. Movable skylight behavior is different than 4.10 😕

Stationary skylight

> **[ImgFuel – Your 100% Free picture Editor and image Converter](https://imgfuel.com/)**
>
> Free Picture Editing and Image conversion webservice for all your needs. This is 100% free to use as a photo editor and picture converter.

Movable skylight

> **[ImgFuel – Your 100% Free picture Editor and image Converter](https://imgfuel.com/)**
>
> Free Picture Editing and Image conversion webservice for all your needs. This is 100% free to use as a photo editor and picture converter.

Too much darkness without DFAO enabled.

Why is that?

---

<div class="post-metadata">

**Author:** ![Maximum-Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maximum-Dev](https://forums.unrealengine.com/u/Maximum-Dev)\
**Post date:** [May 8, 2016, 8:06am UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/8 "2016-05-08T08:06:46Z")

</div>

I just finished downloading 4.12 Preview and the problem is still there. Happening only on the “2 Sided” and “Subsurface” models. In 4.10 and lower everything works fine.

Can I finally get a solution to this please?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_11c1b2f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_11c1b2f9](https://forums.unrealengine.com/u/anonymous_user_11c1b2f9)\
**Post date:** [May 8, 2016, 8:14am UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/9 "2016-05-08T08:14:30Z")

</div>

Anyone know what’s going on with this?

---

<div class="post-metadata">

**Author:** ![EoinOBroin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EoinOBroin](https://forums.unrealengine.com/u/EoinOBroin)\
**Post date:** [July 28, 2016, 2:25pm UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/10 "2016-07-28T14:25:51Z")

</div>

Also getting issues with this!!

---

<div class="post-metadata">

**Author:** ![EoinOBroin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EoinOBroin](https://forums.unrealengine.com/u/EoinOBroin)\
**Post date:** [July 28, 2016, 5:03pm UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/12 "2016-07-28T17:03:57Z")

</div>

> [@DanielW;572245](#):
>
> Thanks for bringing this up. Movable skylight with TwoSided or Subsurface was incorrect and has been fixed in the upcoming 4.13.
> 
> cl 2982601  
> Movable skylight now matches stationary for subsurface shading models
> 
> - Two sided was broken in 4.11, Subsurface had never been handled

So awesome, thank you for the hard work! 🙂

---

<div class="post-metadata">

**Author:** ![Seehr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Seehr](https://forums.unrealengine.com/u/Seehr)\
**Post date:** [September 4, 2019, 10:02am UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/13 "2019-09-04T10:02:50Z")

</div>

> [@lucastakejame](#):
>
> /\ We are from the same project hehe, same problem.  
> I unchecked the ‘Used with Particle Sprites’ (don’t know why this was checked, but it worked on 4.10 anyway) and it compiled with no errors =)!

4.23 with Niagara. Had this weird issue and couldn’t solve it in any way.

The problem started as soon as I used my material to override a mesh particle renderer inside Niagara’s module.  
I tried many things until this.

I am leaving this comment here in case anyone is getting the warning back

EDIT: Disable all your material usages, compile and later activate only niagara mesh particles. This will solve the issue.

---

<div class="post-metadata">

**Author:** ![Mr.Jozin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mr.jozin/32/1137120_2.png) [@Mr.Jozin](https://forums.unrealengine.com/u/Mr.Jozin)\
**Post date:** [February 23, 2020, 9:00am UTC](https://forums.unrealengine.com/t/4-11-2-dfao-and-foliage-shading-issues/62764/14 "2020-02-23T09:00:42Z")

</div>

was the simpilar error - invalid subUVparams when compiling cloud material shader, compelled to unckek all boxes but used with NIagara sprite, then compiled witout a problem.  
Its interesting this problem arised sudden on yesterday
