basic shading and matrices