shadowCastingLightsFirst function

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

Implementation

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