lighting and correction of rotation for new z direction