Refactored implementation with a clean separation between view and model.
Replaced ccmd "skydetail" by implementing onchange callbacks for the rend-sky-detail and rend-sky-rows cvars.
Instead of modifying the hemisphere geometry and coords for the lower half of the sky we now simply flip the modelview and texture matrices on the Y axis and use the same geometry for both hemispheres.
Instead of modifying the hemisphere texture coords for scrolling we now simply translate the texture matrix.
Sky light color calculation is now performed separately to sky cap color (the latter is now implemented in rend_sky.c and automatically updates when the sky texture changes).
Fixed fadeout color limit (always ignored due to a logic error).
Sky textures are now clamped on the t axis.
Removed kludge added for fakeradio edge renderering in wireframe mode.
Todo: Now that the hemisphere geometry is never updated once built, we should upload this to the GPU using a VBO or something...
Cleanup sky management/sphere renderer
rend-sky-detail and rend-sky-rows cvars.
half of the sky we now simply flip the modelview and texture matrices
on the Y axis and use the same geometry for both hemispheres.
now simply translate the texture matrix.
color (the latter is now implemented in rend_sky.c and automatically
updates when the sky texture changes).
Todo: Now that the hemisphere geometry is never updated once built, we
should upload this to the GPU using a VBO or something...