Fixes related to surface with edges
This topic fixes an issue where when surface with edges was on the shaders were rebuilding every time when they did not need to because the light complexity was shared between all the shaders.
Also when draw edges was on scalar coloring was still happening wen it shoudl not have been.