Skip to main content

How to setup material blending for Source 2 models in Blender

A brief guide on configuring vertex-based material blending for Source 2 models using Blender and ModelDoc.

Step 1. Creating a Color Attribute​

  • In Blender, 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
  • Click Add.

Creating a new color attribute for vertex painting in Blender

What should happen after creating a color attribute

Step 2. Vertex Painting​

In Blender, switch to Vertex Paint mode and paint your model according to the Counter-Strike 2 iconCounter-Strike 2 shader requirements below.

Csgo Environment Blend​

Vertex СolorHEXLayer in shaderNotes
Black#000000Layer 1
Red#FF0000Layer 2
Green#00FF00Layer 3
Blue#0000FFWetnessApply over the black color (Layer 1)
Pink#FF00FFWetnessApply over the red color (Layer 2)
Cyan#00FFFFWetnessApply over the green color (Layer 3)

Csgo Simple 2way Blend​

Vertex СolorHEXLayer in shader
Black#000000Layer 1
Red#FF0000Layer 2

Screenshot showing vertex colors applied to the model

Example of a material in the Material Editor

Step 3. Result​

Result