Changed code some more, should be closer now. Something like texture coordinates is still missing.