Add rendertarget to rendertarget

Hi,

I would like to add a rendertarget incrementally to another rendertarget (“rendertarget A” x 0.001 + “rendertarget B” = “rendertarget C”) with a function in BP. What is the best way to do that?

So far I tried to connect “rendertarget A” followed by a multiply to the emission slot of an additive material and use a function to “Draw Material to Render Target” to create “rendertarget C”, but the values seem to clip to black at these small values and “rendertarget C” renders black…

Any idea? is there maybe an easy c++ solution for this to combine textures?

Thanks a lot for any help! Cheers, Toby

Hey using many rendertargets may be realy performance killing. Tell what are you trying to do and maybe there will be better solution.

I don’t know what are you trying to do but if you don’t have to do this every frame you can try Draw material to render target or take a look at this: A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums

It’s for water simulation but you can do this similarly. (just read buffer and add together, and save it in UTexture2D for example.)

Thanks Przemek, I’ll look into this. Cheers, Toby