fix Y-axis inversion for NPAPI presenter
added convenient val shader functions