Removed unnecessary temporary variable.
Performing optimization on camera zenith angle instead of horizon line.

Avoids problems with camera is looking close to zenith (horizon line is at infinity!). Can be converted back and forth anyway.