Blending materials on a Source 2 model using Blender
< Source 2 Docs | Modeling
Jump to navigation
Jump to search
A quick guide on how to add material blending to your model in Source 2 using ModelDoc and Blender.
Step 1. Creating a Color Attribute
- Switch to Vertex Paint mode.
- Click the Attribute dropdown in the top header.
- Click the plus button on the right.
- Set the following parameters in the pop-up window:
- Name:
VertexPaintBlendParams - Domain: Face Corner
- Data Type: Byte Color
- Name:
- Click Add.
Step 2. Vertex Painting
In Blender, switch to Vertex Paint mode and paint the model's surfaces with your chosen colors. Use the reference tables below to find the required vertex colors that match the requirements of Source 2 shaders.
| Vertex Сolor | HEX | Layer in shader | Notes |
|---|---|---|---|
| Black | #000000
|
Layer 1 | |
| Red | #FF0000
|
Layer 2 | |
| Vertex Сolor | HEX | Layer in shader | Notes |
|---|---|---|---|
| Black | #000000
|
Layer 1 | |
| Red | #FF0000
|
Layer 2 | |
Step 3. Renaming a data stream
- Open your model via ModelDoc.
- 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 (first slot), it can be anything if your model has more than one slot. - To Name:
VertexPaintBlendParams$
- From Name: