I am using an animated depth map to displace a tessellated surface very heavily. Around the edges of my heavily displaced surface I have very stretched polygons. I’d like to dynamically make polygons that are heavily stretched to have zero alpha, and as they are stretched less fade back into visibility.
Is there a way to read stretched a polygon has been displaced and output that as something that could be multiplied into an alpha?