This article's documentation is for Source 2. Click here for more information.

Blending materials on a model using Blender

From Valve Developer Community
< Source 2‎ | Docs‎ | Modeling
Revision as of 12:50, 10 September 2025 by THE OWL (talk | contribs) (Created page with "{{Source 2 topicon}} {{LanguageBar|title = Blending materials on a model using Blender}} {{stub}} {{todo|Write the same article, but about <code>VertexPaintTintColor$</code> (works the same way, but when specified together with <code>VertexPaintBlendParams$</code>, requires specifying a different vertex color slot).}} A quick guide on how to add material blending to your model in {{source 2|1}} using {{MdlDocEdit|1|nt=1}} and {{blender|1}}. {{Note|This article assum...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

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.

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

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:

  1. Black - Layer 1 in Source 2.
  2. Red - Layer 2 in Source 2.
  3. Green - Layer 3 in Source 2.
  4. Blue - [Todo]
Applied vertex painting in Blender
Example of a blend material

Step 2. Renaming a data stream

  1. Open your model.
  2. Right-click on the render mesh.
  3. Find and select Add RenameStream.
  4. Click on RenameStream under the desired mesh and fill in the nodes as shown below:
  • From Name: color$0
Note.pngNote: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$
Changing the data stream to the blending material

Step 3. Enjoyment