Noob question vertex colour

Explain me somone what exacly doing there vertex colour node? this material come form grass epic content kide demo

My guess is that it is probably just a linear gradient that goes from the bottom to top of the mesh geometry, but not enough of the material is visible here to conclude that.

Gradients like that are usually useful in a lot of ways, you can mask off the bottom of your grass so its not affected by swaying, you can make the high points of the grass lighter (which is what it looks like they’re doing here) so that you can change the color without creating a ground seam.

There are other ways to generate a linear gradient in the material, but a lot of people just use vertex color anyway.

1 Like

Good guess… That’s exactly what it does.

A linear gradient in the material is linked to the UV.
Grass meshes don’t usually have straight UVs.
Vertex paint is capable of isolating the individual grass strands without any issue or uv manipulation.

That said, the grass material (off Kite which is what the screenshot is essentially from) and mesh is really not that good.
It’s a decent start, but it isn’t very performance conscientious…

1 Like

That’s true. I was thinking more along the lines of generating an object space gradient from the world coordinates rather than using UV, but you still get more control over the result with vertex color.

Thanks guys

You can see the Vertex colours of your grass mesh in the editor (double clicking the mesh in the content browser)

you right its green gradient from ground darker and lighter on top, but why when I open other static mesh with new material and join vertex colour to base colour input nothing happend in static mesh also nothing show, its very strange node

Depends on what math you did.

And it’s usually already in the base color in order to darken the bottom for fake shadowing.