Source 2 PBR Texture & VMAT Tool

Valve Source 2 (CS2 / Alyx / S&box) Normal & .vmat Packer

Prepare textures for Counter-Strike 2 Workshop maps, Half-Life: Alyx, and S&box locally: convert OpenGL (+Y) normals into Source 2 DirectX (-Y), pack Roughness cleanly into Alpha, and copy a ready csgo_complex.vfx .vmat file.

100% Local Browser Engine · 0 Bytes Uploaded
Instant Deterministic Output

Packed Source 2 Normal + Roughness Alpha (256 × 256 px · DirectX -Y)

Input Preview
Processed Output
// Valve Source 2 Material (.vmat) for CS2 / Half-Life: Alyx / S&box
Layer0
{
  shader "csgo_complex.vfx"
  TextureColor "materials/weatheredbrick_color.png"
  TextureNormal "materials/weatheredbrick_normal.png"
  TextureRoughness "materials/weatheredbrick_rough.png"
  TextureAmbientOcclusion "materials/weatheredbrick_ao.png"
  TextureMetalness "materials/weatheredbrick_metal.png"
  g_flRoughnessScaleFactor "1.000"
}
Open Full 4-Map PBR Studio

Valve Source 2 PBR texture conventions (CS2 / S&box / Alyx)

VMAT ParameterSource 2 ConventionRecommended Format
TextureColorsRGB Base Color8-bit PNG / TGA
TextureNormalDirectX (-Y) Tangent Space8/16-bit PNG (Flip OpenGL G)
TextureRoughnessLinear Grayscale (White=Matte)8-bit PNG or Normal Alpha
TextureAmbientOcclusionLinear Grayscale8-bit PNG

Fixing inverted bump lighting in CS2 Hammer and S&box

Valve Source 2 shaders expect DirectX (-Y) normal maps. Importing an OpenGL (+Y) normal map straight from Blender or online libraries makes bullet holes protrude and bricks sink inward—flipping Green before compiling fixes shading instantly.

Instant .vmat shader boilerplate for rapid Workshop iteration

Type your material asset name to generate a clean csgo_complex.vfx .vmat text block with matching TextureColor, TextureNormal, TextureRoughness, TextureAmbientOcclusion, and TextureMetalness paths.

Frequently asked questions

Does Source 2 use DirectX (-Y) or OpenGL (+Y) normal maps?

Source 2 uses DirectX (-Y) tangent-space normal maps. Keep Convert OpenGL to DirectX checked when importing OpenGL textures.

Does Source 2 use Roughness or Glossiness?

Source 2 uses standard Roughness (0 = glossy, 1 = matte), unlike legacy Source 1 specular masks.

Can I use this .vmat template in S&box or Half-Life: Alyx?

Yes—swap csgo_complex.vfx to complex.shader (S&box) or vr_complex.vfx (Half-Life: Alyx) while keeping the same texture slots.

Are my workshop textures kept private?

Yes—100% browser-local processing with zero uploads.

More free local PBR & normal map tools