Blending materials on a model using Blender
Jump to navigation
Jump to search

Note:This article assumes that you already know how to work with vertex painting in Blender and create simple models in ModelDoc.


Todo: Write the same article, but about
VertexPaintTintColor$
(works the same way, but when specified together with VertexPaintBlendParams$
, requires specifying a different vertex color slot).A quick guide on how to add material blending to your model in Source 2 using ModelDoc and Blender.

Step 1. Vertex Painting
In Blender, switch to vertex painting mode and add the desired colors to the desired parts of the model. Below is a list of colors used in Source 2 for blending materials:
- Black - Layer 1 in Source 2.
- Red - Layer 2 in Source 2.
- Green - Layer 3 in Source 2.
- Blue - [Todo]
Step 2. Renaming a data stream
- Open your model.
- Right-click on the render mesh.
- Find and select Add RenameStream.
- Click on RenameStream under the desired mesh and fill in the nodes as shown below:
- From Name:
color$0
Note:Digit specifies the slot for vertex painting in Blender, so instead of 0, it can be anything if your model has more than one slot
- To Name:
VertexPaintBlendParams$
- From Name: