2 custom stencil passes for the same mesh without duplicating skeleton.

Hi,

thanks for reaching out. A more efficient alternative to mesh duplication and performing two depth stencil passes might be to create a custom render pass which replaces the two depth passes and only needs to be drawn once per skeletal mesh. This may help in keeping the number of draw calls to a minimum. It would require quite a bit of code, but might be worth the effort. The following links might be useful:

Hopefully that helps. Please let me know if you have any further questions.

Best,

Sam