hopefully fixed shadowmapping not working on some platforms