- Home /
Invisible object that can receive shadows
Hello,
Does anyone know a way on how to make an invisible material receive shadows?
I'm creating an 2D game with dynamic shadows & lights. The terrain is rendered with an other camera and doesn't receive shadows from the other game objects in the world.
My idea was to put an invisible gameobject over the terrain (an Quad) and have it receive the shadows, but I'm unable to figure out how to do it.
Thanks,
Answer by Sethhalocat · Jul 12, 2015 at 05:35 AM
i was looking around in unity a bit and the best i found was copying your bsckground meterial (assuming its one color) and pasting the meterial againg (like making a backup of the material) then change the standard bar to legacy shader/Self-Illumin/Bumped defuse so light wont receive on it and all u see is a shadow, I also found something that makes it look like a ghost xD. Hope this helped, and i took off auto correct when typing this so i hope there isnt too many mistakes.
Actually I found a bar that does this for you. its shown in the link below :D Hope it helps. Feel free to give this answer a like :D https://gyazo.com/be3c4c2a80cdbc12d4691fd5ac86f954
Did it help?
Your answer
![](https://koobas.hobune.stream/wayback/20220611230740im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2D ligting, light cone 2 Answers
Unity 2D scaling with a diffuse material 0 Answers
Transition Texture or Material horizontally 0 Answers
Sprite Diffuse shader extrange behaivor with more than 2 light in WebGl. 0 Answers
a 'bar' or neon like light. 3 Answers