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.
Source 2 PBR Texture & VMAT Tool
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.
Packed Source 2 Normal + Roughness Alpha (256 × 256 px · DirectX -Y)
// 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"
}| VMAT Parameter | Source 2 Convention | Recommended Format |
|---|---|---|
| TextureColor | sRGB Base Color | 8-bit PNG / TGA |
| TextureNormal | DirectX (-Y) Tangent Space | 8/16-bit PNG (Flip OpenGL G) |
| TextureRoughness | Linear Grayscale (White=Matte) | 8-bit PNG or Normal Alpha |
| TextureAmbientOcclusion | Linear Grayscale | 8-bit PNG |
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.
Type your material asset name to generate a clean csgo_complex.vfx .vmat text block with matching TextureColor, TextureNormal, TextureRoughness, TextureAmbientOcclusion, and TextureMetalness paths.
Source 2 uses DirectX (-Y) tangent-space normal maps. Keep Convert OpenGL to DirectX checked when importing OpenGL textures.
Source 2 uses standard Roughness (0 = glossy, 1 = matte), unlike legacy Source 1 specular masks.
Yes—swap csgo_complex.vfx to complex.shader (S&box) or vr_complex.vfx (Half-Life: Alyx) while keeping the same texture slots.
Yes—100% browser-local processing with zero uploads.
Optional Google Analytics
Accept loads Google Analytics 4 for traffic and conversion measurement. Reject keeps it off. Necessary first-party product events and the cookie-free pageview counter remain active. This choice never enables advertising.