Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Can a material cast shadows but not receive them

I am trying to set up some advanced foliage for a scene and was wondering if there was a way for a specific material to cast shadows (like leaves) but not themselves receive them (but still receive traditional lighting from other sources)

Thanks in advance,


Product Version: Not Selected
more ▼

asked Jul 16 '14 at 08:14 AM in Rendering

avatar image

28 4 9 9

avatar image Osok Dec 10 '14 at 04:10 AM

I would like to know this as well.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I've managed to solve this problem for myself, so hopefully you can make use of my solution. I'm using emissive color to overcome the self-shadowing. Hopefully the next UE4 update will finally include a toggle for 'Receive Shadow'

Here's the material I'm using for my leaves: alt text

And here's how it looks like in a test scene (It's the trees in the red circles): alt text

The material even looks good from the ground: alt text

The 2 trees are built using different methods and both look ok using this material: alt text

Hopefully this has helped you. :)

leaves_bp.jpg (63.2 kB)
tree_ground2.jpg (78.8 kB)
test_shadows2.jpg (98.4 kB)
tree_3d_2.jpg (98.9 kB)
more ▼

answered Dec 31 '14 at 01:16 PM

avatar image

49 1 2 8

avatar image Dralex789 Jan 05 '15 at 05:50 PM

This is actually the solution I found on my own heh. Not a perfect solution but it works well enough when lit during the day. It does unfortunately create some weird issues in darker scenes but it is definitely a start.

avatar image Matheus Souza Feb 11 '17 at 08:08 PM

You have change the vertex normal ?(tree)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question