Calculate cubemap coordinates in fragment shader

Fixes cubemaps being distorted