Disable AA on shadows

Hello, I’m trying to make a “retro” game. Issue is that that shadows seems to always gave anti-aliasing? Am I missing something?

r.AntiAliasingMethod=0
r.MSAACount=0
r.Upscale.Quality=0

Edit: Now that I finally said it out loud, I understand the issue and difficulty behind this simple question. Issue being the soft edges of shadows.