Wiring in shadow extraction

WIP: @markhibberd