Documentation

SpeedTree Modeler

SpeedTree Modeler

Vertex colors

You can use vertex colors to store data in the form of red, green, and blue (RGB) values for each vertex in generators of your model that create geometry, like Branch generators.
Read time 2 minutesLast updated a day ago

Stored data can then be read back in a shader, or used for things like variation or masking, by sampling the colors stored per vertex on generators like Branch generators that create geometry.
Preview of vertex colors on a tree in the Tree window.
Note
To compute vertex colors in your model, you must set up the Tree generator as described below.

Compute vertex colors in your model

To make your model compute vertex colors:
  1. In the Generation Editor, select the Tree generator.
  2. In the Properties bar, in the Vertex Color section, select Compute.

Inspect your model's vertex colors

To inspect the vertex colors of your model:
  1. In the Tree window toolbar, in the View section, select Render > Vertex Colors.
  2. Select the color you want to inspect.
For more information about render modes in general, refer to the Tree window toolbar reference page.

Edit your model's vertex colors

  • You can apply vertex colors procedually to your model. For this, each generator has a set of Vertex Color properties that either set the color directly or modify a color they inherit from their parent. This allows you to smoothly transition colors across nodes and generators.

Mesh assets and vertex colors

When you import an .fbx file, any mesh assets in the file retain their vertex colors.
Note
You can inspect vertex colors for mesh assets in imported .fbx files, but it is not possible to edit them.

Inspect vertex colors for a mesh asset

To inspect vertex colors for a mesh asset:
  1. In the Meshes window, select the mesh asset in the list
  2. Right-click on the previewed mesh asset and then select Show Vertex Colors.

Additional resources