include rotation calculation in rendering