Polygon center edge...

I am trying to think of an easy way (in the material step) to figure out how far the current textel being drawn is from the edge of the polygon…

Can’t figure out a cost efficent way based on what I got at hand.

What I simply want to do is fade the color of the material the closer I get to the edge of the polygon.

You could do that as a texture, I’m not sure doing it in code is going to really be all that useful, it would have to be rendered to a texture map anyways.

A texture wouldn’t help much since there would be a hard time aligning it properly to the polygons.