- Home /
Realtime Shadow Problem On lightmapped Object
Hello everyone, I have a very strange problem. I baked Directional Lightmap and on realtime Shadow for my player. It works fine in unity and realtime Shadow clearly visible on both lightmapped and non-lightmapped Objects, but when i rum my project on IOS device realtime shadow not coming on lightmapped object. It coming only on non-lightmapped objects. I am using forward rendering path. Even i enable render mode important and real time only options for directional light. I am also using other directional lights for weather but i marked them not important. So please help me. Thanks in advance.
I'm having the same problem. Boosting the shadow strength helps make the shadows show up on iOS but I need them to be nearly black in the editor to have them show up ever so faintly on iOS! Hardly WYSIWYG! Also, cranking the strength up creates a huge disparage between the look of the shadows over lightmaps and over other realtime lit objects.
$$anonymous$$y light set up is even simpler too. 2 directional lights only. 1 that is lightmap only that doesn't cast shadows and simply gives the lighting some subtle directionality and one pointing straight down which casts realtime shadows and affects all objects. I've got some ambient too.
Answer by Jessespike · Feb 26, 2015 at 04:23 PM
Lightmapped objects will ignore real-time shadows. This is default behavior from Unity's mobile shaders.
Not sure if Unity provides a standard shader that allows you to do what you're asking. Might have to edit or write you're own, which would be adding shadow calculations along with lightmap.
Oh, no it works, it's just not consistent. So the light mapped surfaces do accept the real time shadows, the issue is that they are really dark in the editor and extremely faint on iOS.
Your answer
Follow this Question
Related Questions
How to make coins to not receive shadows 2 Answers
my directional shadow isn't working. 1 Answer
Realtime Shadow Glitch [Unity Indie: Directional Light] 2 Answers
Shadow makes texture invisible! pics inside! 0 Answers
Lighting for side section view 1 Answer