Fixes the fresnel bug, also change generate only one frame for the
reference renderer.