Rendering to the same render target

Hello,

I’m working on some side project and I was wondering how I could render to the same render target multiple times in a single frame?

I’ve converted some 3D worldpositions and I want to render a circle at each of those positions. The world positions are dynamically genereated so I don’t know how many there will be upfront. since I was not able to find a way to pass along multiple vector location to a material I tried rendering to the same render target over and over again. But this does not seem to work as wel.

    UKismetRenderingLibrary::ClearRenderTarget2D(this, m_RT, m_RT->ClearColor);
    for (UTextureRenderTarget2D* render_target : render_targets)
    {
        m_material instance->SetTextureParameterValue(TEXT("Existing"), m_RT);
        m_material instance->SetTextureParameterValue(TEXT("Additive"), render_target);

        UKismetRenderingLibrary::DrawMaterialToRenderTarget(this, m_RT, m_material instance);
    }

Kind Regards,
Dyronix