- Home /
Problem with lights and shadows (Random square shadow)
I'm getting this strange square shadow effect depending on how the camera is rotated. Does anyone know what could be causing it? I have no idea where this shadow could be coming from to be honest. I have a point light on my char, but with no shadows. There is no directional light in the scene, only point and spot lights.
You can see the shadow close to the feet of the character:
Now the shadow changed based on the camera rotation:
I noticed that there are some changes if I play with the "Render $$anonymous$$ode: Auto" setting, by changing it to Important/NotImportant. Still no complete solution to the problem thou
Here is another picture showing the problem:
Nobody even has a clue on this? I can't believe I'm the only one having this prroblem! :D
Answer by Demonicdaron · Aug 11, 2015 at 06:35 PM
It turned out to be the Render Mode of the lights in the end. I had everything set to auto, which in turn was setting each light on important/not important according to the intensity of the surrounding lights. After psending a while figuring out which made most sense to be important/not important, I was able to fix the problem. However, I had to renounce to having both the player light and the enemies light displyed on the floor at the same time when player and enemy got close together.
Answer by Slimmy · Feb 08, 2019 at 09:49 AM
This really helped me out when trying to figure out why I got these strange square shadow around my vehicle. I had spotlights both front and back which were all set to important. However, I also had a directional light in the scene (moon glow) which caused a conflict. Put all my spotlights on auto which removed the square shadow but instead caused my tail lights to stop rendering from time to time. Still haven't found a solution for this.
I found the answer elsewhere.
You should go to Edit > Project Settings > Quality and change the pixel light count to a higher value.