9
$\begingroup$

I want to make a bread shader so that it is darker on top than on the bottom. I know how to make color, bumps and everything else, I'm only interested in a black and white mask for mixing colors. Of course, I can use the usual gradient texture, but I want this transition to be less direct. So far, I'm not doing very well. I hope that I clearly wrote, you can see in the picture what I want.

enter image description here

enter image description here

enter image description here

$\endgroup$

3 Answers 3

9
$\begingroup$

Here, try this setup:

BreadShaderExample

The "mask factor" you are looking for, I achieved by rotating (and slightly moving) a Gradient Texture, and controlling it's cutoffs with a ColorRamp. I then used it as a mix factor for the "bread colors" and adjusted the ColorRamp until it looked right. (This works very well to control the darkness levels).

GradientControl

I then mixed a Noise Texture and a Musgrave Texture to give a scattered displacement pattern, and I used it's inverse as a roughness factor.

Displacement

I thought the bread colors looked too plain, so I combined yet another Musgrave Texture with a couple of Noise Textures and multiplied them with the bread colors to transfer the darks only.

AddedDarks

Lastly, I added the whites from a clamped, detailed musgrave texture to get the "flour coating" on the crust of the bread.

FlourCoat

I'll also upload the .blend in case you want to play with it. I even threw in a couple of extra procedural textures (The pan and the table) that can be used as examples.

FinalProduct

File is here -

Happy shading!

$\endgroup$
6
$\begingroup$

You may want to try using a gradient on the Z axis controlled using a color ramp, like this. Not sure if this works with your workflow and the final result you're hoping to achieve, but I hope it helps!

enter image description here

$\endgroup$
2
  • $\begingroup$ No, I want the top to be completely painted over, and there should be bumps around the edges $\endgroup$
    – user99579
    Jun 26, 2020 at 12:09
  • $\begingroup$ @user Sorry I wasn't able to be more help! Good luck though! $\endgroup$
    – GhostOwl
    Jun 26, 2020 at 13:00
0
$\begingroup$

This is version without bumping, only simple mask

enter image description here

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .