Shading func.

most likely final version.. unless i add a zooming feature