shadowCastingLightsFirst function

int shadowCastingLightsFirst(
  1. Light lightA,
  2. Light lightB
)

Implementation

int shadowCastingLightsFirst(Light lightA, Light lightB) {
  return (lightB.castShadow ? 1 : 0) - (lightA.castShadow ? 1 : 0);
}