1
$\begingroup$

I have a complex object with two assigned materials. Inner material is white and the outer material is black. I would like to create a gradient transition between the materials, from white to black material. I want to do this without uv mapping, Can I somehow use the data from the edge loop to create the gradient?

The black part would be made by mixing black and white color shaders and creating the transition. Thw white part is just one material.

I used a cylinder just as an example.

enter image description here

$\endgroup$
4

1 Answer 1

0
$\begingroup$

You can use Attributes with vertex paint:

In Solid Viewport shading, go to edit mode, select the inner circle, then switch to vertex paint mode.

change the Domain to Vertex and the Type to Color, then enable the face mask selection in the top left corner; use a paint brush to fill all selected vertices, so to get a Black and white mask.

enter image description here

Now go to rendered or material preview mode, in the shader editor add an Input > Attribute node, type the exact name of the painted attribute.

The gradient will happen between an edge ring that has a black vertex color and another edge ring which has white.

Use a Color Ramp node to fine tune the effect.

enter image description here

$\endgroup$

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