Open ianmackenzie opened 4 years ago
Useful optimization, allows objects to cast shadows only from a subset of lights:
Scene3d.shadowIf : (Light coordinates Bool -> Bool) -> Shadow coordinates -> Entity coordinates
The callback will be called with every shadow-casting light to check if a shadow should actually be cast for the given object.
Useful optimization, allows objects to cast shadows only from a subset of lights:
The callback will be called with every shadow-casting light to check if a shadow should actually be cast for the given object.