adding reflect parameter to materials, some fixes for shadows