How to get color black in Render target?

Hi.

I am doing this grafitty minigame where i can spay multiple colors in the walls, but i cant spray black color:


The hole in the middle is the black color (its not really black its a very dark gray)

I have different brushes with different premade colors:

This is how i spray the brushes in the character bp:

In the wall canvas i set the render target like this:

This is the fuction Draw brush that i call in the character bp:

And this is the material of the wall canvas:

How can i make the color black visible? any ideas?

Might need to paint and render the target twice. Once with the colors, and a second time using only white. Then use the black and white render as a mask to lerp between the graffiti color and the wall texture.

Can you show me how to do that?

I don’t have UE installed on my laptop right now, so can’t make blueprints to show, but basically you’d just duplicate the draw functions using white for the brush, and save it to another render target. Then in the material, sample the new RT, feed it into the alpha of a lerp node, and use that lerp instead of blend_lighten to mix the colors.

1 Like

Hey bro, where do you live? i wanna kiss you <3

Just one more thing:

Do you know why it get pixelated when i use a small size brush?

The pixels are probably just a side effect of the brush getting scaled up and down.