Implemented distance attenuation on secondary render target. AH-360
Clean up, fixed debug views.
Merged render targets for distance attenuation. AH-360

Also added tweak settings support.