combined code, texture is broken only read top left corner