How to render outline for an animated model?

    public override unsafe void Render(GPUContext context, ref RenderContext renderContext, GPUTexture input, GPUTexture output)
    {
        // Second pass: draw the model with the outline material

        // Get the transform of the actor
        Actor.GetLocalToWorldMatrix(out var world);

        // Submit the draw call to the render list, which will be handled later in the forward pass
        _model.Draw(ref renderContext, _material, ref world, StaticFlags.None, false);
    }

This tutorial introduces how to render outline for a model, but how to process animated model?

We don’t have that exposed to C#. I can add a new API that would allow to do it (new task for 1.13 roadmap).

thanks, I can’t wait to see it. :grinning:

Added new API to 1.13 branch for the next engine update. This will need some code changes to properly collect draw calls so I updated tutorial too:

2 Likes