Put shading logic into new function