2
$\begingroup$

I want to do something about triangle vertex shading and give vertices of a triangle red, green and blue like this.enter image description here The color of the triangle face is decided automatically by smooth shading. Is there any way I can find the specific shading function or theory and change it? For example, I want some colors to have more or less impact on coloring the face. How can I achieve it? Is shading nodes can do such things?

$\endgroup$
2
  • 1
    $\begingroup$ I might try subdividing the size of the triangle after the vertex coloring was applied, and then sliding those middle vertices on the outer edges, so they’d basically function as half point stops for the gradients? IDK if that would work. $\endgroup$
    – TheLabCat
    Commented May 13 at 13:15
  • 1
    $\begingroup$ @TheLabCat It works, thanks for inspiration $\endgroup$
    – Kerei
    Commented May 14 at 1:05

1 Answer 1

3
$\begingroup$

The interpolation of an attribute such as smoothed normal across a shaded triangle from its face-corners is linearly weighted by the barycentric coordinates of the shading-point.

If you want some other function of barycentric UVW on faces of a triangulated surface, Geometry > Parametric would the way to your raw material:

enter image description here

For example:

enter image description here

$\endgroup$
1
  • $\begingroup$ It's useful, I will go deep about this and figure what can I get. Thank! $\endgroup$
    – Kerei
    Commented May 14 at 1:06

You must log in to answer this question.

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