# Subsurface not working in shadows

**URL:** <https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176>\
**Category:** World Creation\
**Tags:** subsurface, unreal-engine, Foliage, lighting-problem, question\
**Created:** [May 2, 2016, 10:07am UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176 "2016-05-02T10:07:10Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![worldlearner0411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@worldlearner0411](https://forums.unrealengine.com/u/worldlearner0411)\
**Post date:** [May 2, 2016, 10:07am UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/1 "2016-05-02T10:07:10Z")

</div>

I have been putting together a grass material, and my results so far are what I’m looking for. The problem is when a shadow is cast onto the grass it appears that there is no subsurface effects. Any ideas on what could be causing this?

This is what it looks like with no shadows on it.

 ![89165-no+shadows.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/8/d288a77b6ab377581ed087a01a43a76f31501913.jpeg)

This is what a shadow looks like from a distance.

 ![89166-distance+transition.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/2/b02431a87809178b9032b6133264df659c08b65a.jpeg)

This is the comparison up close.

 ![89168-comparison+shot.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/a/ffa9c7886b2dc2cd74dd985e05d923d1f5bcd955.jpeg)

I apologize for the low res images…really!? 5.2 MB is a pretty low limit. This is a full shadow shot.

 ![89169-full+shadow.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/e/43e06c2a70b97721ea158e883327eaae636587b0.jpeg)

It’s not as easy to see it in the pictures…but it looks horrible. There are black areas and its almost as if all of the color has been taken out of it. I think the black areas are being caused by my normal, but I can’t figure out why. I’m not a big fan of posting my materials, but here are the relevant parts.

 ![89170-material.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/6/956bc3263884098ed04caf02a1b88a406337b6d2.jpeg)

Any help would be appreciated 🙂

---

<div class="post-metadata">

**Author:** ![ZoltanE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Post date:** [May 2, 2016, 11:31am UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/2 "2016-05-02T11:31:55Z")

</div>

A better image showing the issue would be great. However SSS will only work when the surface is directly lit because it’s calculating how much light passes through when the **light source** is on the other side of the surface. If there is no light source visible then you won’t see SSS. Light probes provide a generic, surrounding light environment so they can’t be used in the calculation even if they are present.

---

<div class="post-metadata">

**Author:** ![worldlearner0411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@worldlearner0411](https://forums.unrealengine.com/u/worldlearner0411)\
**Post date:** [May 2, 2016, 3:21pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/3 "2016-05-02T15:21:34Z")

</div>

Now that its a comment I can apparently post another 5mb 🙂 This one is a high resolution.

 ![89189-highresscreenshot00002.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/0/fc09fc6af9b8e7dedd392a9e83d0ccaebdaae377.jpeg)

---

<div class="post-metadata">

**Author:** ![worldlearner0411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@worldlearner0411](https://forums.unrealengine.com/u/worldlearner0411)\
**Post date:** [May 2, 2016, 3:34pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/4 "2016-05-02T15:34:42Z")

</div>

Subsurface not working without the direct lighting I guess makes sense. What would you recommend doing to resolve the issue? I have noticed that when I turn subsurface off altogether that I get a similar look…perhaps its just showing what my material looks like without subsurface? So in order to troubleshoot it I should work on getting it to look good without subsurface before adding it for the lit areas. What are your thoughts on this?

---

<div class="post-metadata">

**Author:** ![ZoltanE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Post date:** [May 2, 2016, 4:41pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/5 "2016-05-02T16:41:02Z")

</div>

I’d add a very faint green emission to make the dark areas less ugly. Of course it will increase brightness of lit grass too so you might want to darken the diffuse color to compensate. It would be nice to apply this emissive only to pixels in shadow but I don’t know any nodes which would get that information. (The LightVector doesn’t work in the Surface material domain.)

---

<div class="post-metadata">

**Author:** ![worldlearner0411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@worldlearner0411](https://forums.unrealengine.com/u/worldlearner0411)\
**Post date:** [May 2, 2016, 6:24pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/6 "2016-05-02T18:24:04Z")

</div>

Simple Material with no emissive properties…

 ![89217-simple+material+example.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/0/14025066a1a85283767799ab7ff9faced305b16d.jpeg)

---

<div class="post-metadata">

**Author:** ![worldlearner0411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@worldlearner0411](https://forums.unrealengine.com/u/worldlearner0411)\
**Post date:** [May 2, 2016, 6:24pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/7 "2016-05-02T18:24:42Z")

</div>

![89218-simple+material.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/a/a0a5b0c2cd6d7b6901adb3a64775d3fc16f06be8.jpeg)

---

<div class="post-metadata">

**Author:** ![worldlearner0411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@worldlearner0411](https://forums.unrealengine.com/u/worldlearner0411)\
**Post date:** [May 2, 2016, 6:26pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/8 "2016-05-02T18:26:53Z")

</div>

Now with emissive…

 ![89219-emissive+material.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/6/c16096a7c613c2fca9ff72e820176d62e7e1f94f.jpeg)

---

<div class="post-metadata">

**Author:** ![worldlearner0411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@worldlearner0411](https://forums.unrealengine.com/u/worldlearner0411)\
**Post date:** [May 2, 2016, 6:27pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/9 "2016-05-02T18:27:22Z")

</div>

![89220-emissive+mateiral.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/c/05c0611de091417b50ec0e3827d70025b10456ee.jpeg)

---

<div class="post-metadata">

**Author:** ![worldlearner0411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@worldlearner0411](https://forums.unrealengine.com/u/worldlearner0411)\
**Post date:** [May 2, 2016, 6:28pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/10 "2016-05-02T18:28:48Z")

</div>

It brightens it up, but does not do anything for the washed out issue, or the black normal artifacts. Any other ideas?

---

<div class="post-metadata">

**Author:** ![ZoltanE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Post date:** [May 2, 2016, 6:49pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/11 "2016-05-02T18:49:13Z")

</div>

What I meant was adding the emissive color to your original material. In these recent ones subsurface color is not linked up at all.

---

<div class="post-metadata">

**Author:** ![worldlearner0411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@worldlearner0411](https://forums.unrealengine.com/u/worldlearner0411)\
**Post date:** [May 2, 2016, 7:04pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/12 "2016-05-02T19:04:11Z")

</div>

Sorry I figured less stuff would make it easier since subsurface was not affecting the shadowed areas. It actually does seem to change the black areas to a green color, however its washed out. The level of detail from the lit area to the shaded area is totally different.

 ![89241-full+emissive.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/3/893e5438005bd093a34db20379b9be4d8f1ed8f5.jpeg)

---

<div class="post-metadata">

**Author:** ![ZoltanE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Post date:** [May 2, 2016, 7:18pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/13 "2016-05-02T19:18:36Z")

</div>

Perhaps tone down the emissive a bit, low enough so it doesn’t make the lit areas glow but high enough to remove pitch black pixels in the shadow. Try to find the middle ground between the two kind of ugly.

Or you could try to use the new light channels. I haven’t tried this so I’m just speculating but if you could make a faint, shadowless distant light which only affects the grass then that would help too. That “grass filler” would provide subtle directional lighting even in the shadows of other lights.

---

<div class="post-metadata">

**Author:** ![worldlearner0411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@worldlearner0411](https://forums.unrealengine.com/u/worldlearner0411)\
**Post date:** [May 2, 2016, 8:00pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/14 "2016-05-02T20:00:56Z")

</div>

Well here is the best so far. It def. looks better, but I really wish I could get more depth. It would be nice if I could adjust AO in only shaded areas.

 ![89242-best+so+far.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/e/b5e04ab0ebcf75eba7dbadb683b43cf34732e47b.jpeg)

If you or anyone else has any other ideas that could be used to improve upon this I would love to hear them 🙂

---

<div class="post-metadata">

**Author:** ![ZoltanE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Post date:** [May 8, 2016, 7:12am UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/15 "2016-05-08T07:12:39Z")

</div>

If you found an answer helpful then please mark it as accepted. 🙂

---

<div class="post-metadata">

**Author:** ![worldlearner0411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@worldlearner0411](https://forums.unrealengine.com/u/worldlearner0411)\
**Post date:** [May 8, 2016, 7:15pm UTC](https://forums.unrealengine.com/t/subsurface-not-working-in-shadows/356176/16 "2016-05-08T19:15:20Z")

</div>

Absolutely…although my problem was not entirely solved, it was partially solved.
