C-Chads / tinygl

The penultimate portable graphics library
Other
453 stars 53 forks source link

Texture perspective correction is broken. Texture still warps even when enabled. #27

Closed XanCraft21 closed 1 year ago

XanCraft21 commented 1 year ago

Hello, i have found a bug that involves texture perspective correction. I enabled it with glHint and i’m still seeing texture warping.

I was talking to one of the contributors on Discord, he said it will be hard to fix, then he never got back with me. I hope everything is ok.

Am I forgetting any extra steps that must be done before the perspective correction hint, or is there a hidden bug somewhere? If anyone knows i will gladly appreciate the help. Thank you.

XanCraft21 commented 1 year ago

Please disregard this issue, i got the texture correction to work. I just added a projection matrix and some camera coordinates. I never thought i needed to add a projection matrix.

I want to keep this open so i can ask for help questions on this topic. Thank you for your help.