changed the implementation of solid model shading to use subroutines instead of switches