Try to tidy up the eclipse shaders so they're a little more GLSL120 compliant in the hope that it'll make Tichy's open source AMD driver work. Totally blind.
Damn this is complicated.
Merge branch 'master' of git://github.com/pioneerspacesim/pioneer into simplfyEclipse
Just pick from the matrix rather than doing if tests
Pre-divide srad and lrad, pass them through as a uniform.
Pass the inverse (??? i.e. 1.0 / NUM_LIGHTS) value through as a #define to the shader to avoid calculating it per fragment. Means I can avoid two divides within some nested loops.
Oops, fix that last commit!
split shadowCentre into vectors of components
fix bad bracketing in atmos eclipse shader
apply eclipses to sunsets
Merge branch 'master' of git://github.com/pioneerspacesim/pioneer into simplfyEclipse

Conflicts:
	src/graphics/gl2/GeoSphereMaterial.cpp
Introduce a ScopedTable class to cleanup Lua tables at object destruction

In some cases, it is handier to automagically cleanup the stack when the
C++ wrapper is destroyed, for instance when operating on a LuaRef. To
have that behaviour, the LuaTable(LuaRef) constructor has been removed,
replaced by a ScopedTable(LuaRef) one.
Merge remote-tracking branch 'fluffyfreak/simplfyEclipse'
LuaTable: remove useless virtual qualifier for the destructor
Merge remote-tracking branch 'laarmen/scopedtable'