Lighting Bug

Hi! I was having someone test my game’s new update and they found this.


https://playcanvas.com/project/978072/overview/untitled-fps-project
I’m not sure what caused this, and can’t figure out how to fix it. Please let me know if you can help, thanks!

EDIT: and if i need to specify those shadowy bars should not be there.

Hi @Cryptonaph,

Try changing your shadow settings on your active directional light. Some improvements that may help:

  1. Increase resolution to 2048 or 4096.
  2. Increase number of Cascades.
  3. Change your shadows type to VSM 16 or 32bit. You can also try PCF shadows.

After you finish with that setup play with the shadows distance to cover all of your scene without reducing too much quality.

You may also want to change the bias on the shadows on the lights. I normally use 0.2-0.4 for both

I would also say that PCF shadows are more ‘stable’ than VSM at the moment.

1 Like