How to create baked bread shader?
Here, try this setup:

The &quot;mask factor&quot; 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 &quot;bread colors&quot; and adjusted the ColorRamp until it looked right. (This works very well to control the darkness levels).

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.

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.

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

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.

File is here - 
Happy shading!