Ich denke mal, dass das hier ist, was Du suchst:

http://opserver.de/wiki/index.php?title=Cubemap_Rendering_Script


Always learn from history, to be sure you make the same mistakes again...