Some crazy but terrible mapping code, I'm going to call it shadow
mapping.