I figured out what my problem was:

Those shaders didnt work when the sun_angle where changing. When I stoped the functions the shaders started to run.

It was my fault for not letting you know the code but still thanks, and:

Is there a way to use the shaders when the sun_angle is moving?