update shading code