Fixed issue re. vertex shader positionInTime and halfDuration definitions - Windows appears to not calculate these when outside of main