wip integrating texture2d
remove comments + flipy=true