Weird shadows around camera, object edges and corners

These are maybe separate problems but I’ve tried a lot of things and nothing seems to work.
I’ve been messing around with a cel shader and there are some shadows that simply don’t make any sense. Under the camera there are 2 big circles that produce some kind of shadow. They seem to be dependent on the angle of the camera rather than lighting or position over an object.


This is the first circle.

And this is the second one.
If I get further away from the object the second circle stays there, the first one disappears after going back a bit. These shadows only appeared on this specific material, not on the default grid one, it’s the yellow material from the new first person shooter template, although modified a bit so roughness is 1, metallic is 0 and specular is 1.

Here’s another example that I found while typing this, it seems there are more circles, I don’t know where they’re coming from.

Another issue I’m having is these weird highlights and shadows around objects that change depending on the camera angle. These images are from the cel shader preview.


These are the shadows looking from below the sphere.

In this image the shadows have moved and don’t cover the lower part of the sphere completely and some highlights start to appear on the top.

And this is the view from the top, no highlights at all.
The shader comes from this video: https://youtu.be/eBS3BOI5KnM
Pretty much the same shader.

Lastly I have these weird artifacts on places where AO should be.


The shadows aren’t smooth and change based on distance as well.

I’ve been messing with different project settings in the rendering category and nothing seems to work. I disabled lumen and nanite and it fixed some issues except these.