Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
It looks like your vertexSizeBytes stride variable doesn't include uvSize. To figure things like this out, use this kind of logic: The shape of the image isn't a square, so something is wrong wit...
Answer
#1: Initial revision
It looks like your `vertexSizeBytes` stride variable doesn't include `uvSize`. To figure things like this out, use this kind of logic: The shape of the image isn't a square, so something is wrong with the position coordinates. Possible problems: bad offset, bad stride, bad size, bad order of values (e.g. transposed matrix of values). The offset and size look fine, but the stride doesn't. If that hadn't found the issue, I would have modified entries in `vertices` one at a time to see the effect on the output.