MediaPipe chaining

In this example, two separate ShaderPad instances efficiently share resources for a single MediaPipe face detector. The first pass renders vertical stripes inside the face region, and the second pass adds horizontal stripes outside the face.

It’s a contrived example, but it shows how the face plugin shares resources when possible. It also serves as an example of chaining shaders.

View source