Fixed a bug where some triangles were not computed in ShadowCalculation