1
$\begingroup$

I have a Geometry Nodes setup for a procedural ring with adjustable vertex count, outer radius, and thickness. I want to shade it with a smooth gradient between one adjustable color at the inner and outer edges and a second adjustable color in the middle. How do I do that? I haven't been able to figure out a setup that works.

My Geometry Nodes setup:

Screenshot of Geometry Nodes setup that creates a ring with an outer radius and thickness and assigns a material to it.

The kind of gradient I want to achieve:

A ring that is black on the inner and outer edges and white in the middle.

$\endgroup$

1 Answer 1

2
$\begingroup$

You need to tell the shader what are the outer and inner radii or outer radius and thickness, either by using drivers, or by storing as attributes (in the latter case there's a lot of data duplication, but usually it doesn't matter for performance):

Then you can calculate the distance to edge in various ways...

$\endgroup$
2

You must log in to answer this question.

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