Simulation of the "Interior Mapping" technique through Nodes

should probably link to this - Interior Mapping with GLSL Node Material (Update)

it’s the original version of the shader in blender internal nodes.