calculating uv coordinate inside triangle
3 replies to this topic
Posted 18 April 2009 - 07:51 PM
I have a 2d triangle with uv coordinates, i have a point d and I wish to calculate the uv coordinates for this point.
It has to fit in a geometry shader, can someone help me out?
Posted 19 April 2009 - 03:49 PM
Don't forget to do perspective correction.
It's a 2D triangle...
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users