added material support in rendering and lighting (not completed yet)