Messed around somemore and found another problem related to the smooth function. Turned of shadows for now.