x

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"

Shader that only renders shadows

Hello,

For my project I need to be able to render the shadows of meshes on a simple plane, but the plane should be invisible. I've searched for a few hours for a solution, but the only thing I can find is how to make an invisible mesh to still render shadows on other meshes. this is NOT what I want :s

I'm starting to think that I'll have to do some custom shader magic, but I have almost no experience with making my own shaders.

Can someone help me out or point me in the right direction?

Product Version: UE 4.15
Tags:
more ▼

asked May 22 '17 at 11:53 AM in Rendering

avatar image

DeetsV
1 1 2

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

1 answer: sort voted first

This is generally somewhat problematic to achieve, with deferred lighting in particular. You would need intermediate shader coding skills to implement that. I'd suggest you to think about possible workarounds.

For example, if you have only one shadow receiver plane and one directional light, you could try rendering some sort of reverse shadows using scene capture actor, positioned at the plane and oriented towards light. Then you could check if scene depth, rendering by this capture actor, is lower than certain threshold, and make a mask, which you could use as opacity mask for shadow receiver plane material, which in its turn would be just unlit black mat.

more ▼

answered May 22 '17 at 10:48 PM

avatar image

Deathrey
7.8k 130 30 292

(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