Thread: My Next Addon
View Single Post
05-07-15, 02:02 PM   #8
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,324
I forgot I came across that before a while ago. I did a bunch of testing following up my previous post and it's because of how the game engine draws textures. The game draws them internally as 2 triangles positioned top-left and bottom-right. Each triangle uses 3 points from the texcoords to render the image.

I'll just bring this image back from the other post...


In this example, the bottom 2 texcoord points were widened past the bounds of the image. The bottom-right triangle stretched properly while the top-left one merely skewed the image. I'm assuming if the top points were widened instead, the situation would be reversed.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 05-07-15 at 02:33 PM.
  Reply With Quote