reworked shadowrender calls