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"

Unlit material casts shadows on some meshes

Hi there,

My GOAL is to use an unlit material AND have shadows cast. I know that this, by default, is a bit of a contradiction. I do know, however, that it's certainly possible in some way. I haven't gotten around to figuring out the rendering behind it (custom shader, maybe rendering?), but that's not my question.

I have a material. When I set this material to be unlit, it continues to cast a shadow (while remaining unlit) on SOME objects. If I apply the same material to a different object, the shadow disappears.

I guess my question really is "why?" and "can I make this happen on command?" Because I really do like the outcome, it's (almost) what I actually want from rendering, excluding the fact that unlit materials still won't receive light.

I suspect that it might be a bug, because most other threads on the subject of unlit material shadow casting have at least one comment along the lines of "unlit materials can't cast shadows because they're unlit." I have an unlit material doing just that, but only on certain meshes.

I guess in the end it's a moot point since in order to have my "unlit" cel shade materials accept light and cast shadows, I'll probably need to dip into some HLSL (I know it's possible because Dead Static Drive does exactly that. They messed with the renderer though I think. Seems like it should be possible in just a custom node with HLSL...?) Still though, since I'm working on a pretty tight time schedule, it would be nice to be able to use unlit materials that can at least cast shadows in the interim.

Any help on this would be super appreciated :)

Product Version: UE 4.14
Tags:
more ▼

asked Apr 05 '17 at 11:33 PM in Using UE4

avatar image

Shempii
86 5 8 12

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

0 answers: sort voted first
Be the first one to answer this question
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