Watch Dogs style Interior Mapping material

Sorry to resurrect an old thread, I just discovered this and was playing around with it. It’s fantastic, but I was wondering if there’s a way to account for object/building rotation in the shader (at least Z-axis rotation)? I tried picking it apart but realized that the math at play is a bit beyond me.