Solar attenuation

i see whats wrong…there was other places to change…

uploading a updated version, stand by…