Rune Petersen wrote:
> It turns out I missed something obvious...
> 
> The parameters are passed correctly, I have just not transformed the
> vertex.position to the fragment.position

I guess that's the viewport transformation, or maybe a perspective 
divide followed by viewport transformation.

But I think there's a bigger problem here -- somehow you're going to 
have to arrange for that value to be interpolated over the triangle so 
that each fragment ends up with the correct position.

Maybe they are being interpolated already?  I guess it then depends on 
whether the interpolation is perspective correct so that once 
transformed you really get the right pixel coordinates rather than just 
a linear interpolation across the triangle.

Keith


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to