How to change area of material?

Hello, for question I simplified material:

  1. White cube - color
  2. texturees below - linear color (sRGB disabled in textures)

Result must be looks like

292990-256x256-r.png

I’ve tried to use multiply, but something going wrong :slight_smile:

1 Like

Oh, I need connect linear color to alpha of lerp :slight_smile: Do I need to use myltiply? Is one of the pictures from below correct? (preview result of both variants correct)

You need to use 2 lerps. I’m not a PC right now, but use the R pin to control a lerp between white and one of the colors. Same for the other color…

Still not at a PC :slight_smile:

What does the output from these look like?

I think maybe like pic 1, but with add instead of multiply… ( maybe not now I think about it )

Well, that’s what you wanted, so we’re done, right?..

Both variants looks like

293028-result.png

“Add” dont work, material becomes just white.

If neither the multiply or add are needed for that result, then don’t use them. However, I think it looks like the yellow color rectangle is blending with the white of the white cube (it’s lighter yellow than in the material editor). Lerp blends, whereas multiply combines without blending or mixing, and add may do about the same thing as multiply. But it depends on how the inputs and outputs are connected. If you’re using a linear pin (such as R on the texture sample node), then it’s going to connect the Red, or 1st vector value, only, with the RGB value of the texture sample. So, that data is transmitted to the Lerp, which then blends the R value of white (1) with the R value of yellow (1) somehow. Perhaps that’s what is making the yellow lighter in the result? If the result is what you wanted though, then ignore what I said lol.

I think, I dont understand how to work with multiply :wink:

“0 answers” Need answer to mark it as solution :slight_smile:

I’m new to it, and don’t understand well also how to work with it. For that pic you posted of the setup using 4 multiply nodes, I think the white texture sample node should be multiplied by the purple, and also separately by the yellow (you have only the purple connected to the B pin of the top multiply node). Then multiply those two, and connect into the base color. Remember to click apply after finishing to render it in the preview area to the left.

You mean that?

I think yellow looks lighter, because auto exposure ON.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.