SpeedTree
    Show / Hide Table of Contents

    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.

    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.

    • You can also paint vertex colors manually in Freehand mode.

    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

    • Paint textures with procedural colors with the Cutout Editor.
    • Paint Vertex Colors in Freehand Mode.
    • Export vertex colors with the Games Export Options.
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.