Mat dxlevel: Difference between revisions
Jump to navigation
Jump to search
Note:This command is not available in any game made using
Left 4 Dead engine branch and later branches, or in some third-party branches.
Furthermore, since around
Source 2007 or
Source 2009 up to
Source 2013, only DirectX 8.0 and 8.1 materials are supported, DX7 and earlier was dropped (except in
Portal with RTX).
Note:This command does not change the Direct3D renderer to older/newer versions. All Source games will always run on Direct3D 9 (or 11 in some third-party games), regardless which mat_dxlevel is specified.
Warning:Using -dxlevel launch parameter makes alt tabbing in and out of the game really slow, this also resets all video configs. It's better to use +mat_dxlevel launch parameter instead, or to place mat_dxlevel command inside a config file.
Futhermore, -dxlevel should be only used a workaround to fix the issue that the game defaults on DX8 mode which may happens on some modern hardware.
No edit summary |
mNo edit summary |
||
Line 25: | Line 25: | ||
* Gamma (mat_monitorgamma) | * Gamma (mat_monitorgamma) | ||
{{Note|This command does not change the Direct3D | {{Note|This command does not change the Direct3D renderer to older/newer versions. All Source games will always run on Direct3D 9 (or 11 in some third-party games), regardless which {{code|mat_dxlevel}} is specified.}} | ||
{{warning|Using {{Code|-dxlevel}} launch parameter makes alt tabbing in and out of the game really slow, this also resets all video configs. It's better to use {{Code|+mat_dxlevel}} launch parameter instead, or to place {{ent|mat_dxlevel}} command inside a config file.<br>Futhermore, {{Code|-dxlevel}} should be only used a workaround to fix the issue that the game defaults on DX8 mode which may happens on some modern hardware.}} | {{warning|Using {{Code|-dxlevel}} launch parameter makes alt tabbing in and out of the game really slow, this also resets all video configs. It's better to use {{Code|+mat_dxlevel}} launch parameter instead, or to place {{ent|mat_dxlevel}} command inside a config file.<br>Futhermore, {{Code|-dxlevel}} should be only used a workaround to fix the issue that the game defaults on DX8 mode which may happens on some modern hardware.}} | ||
== See also == | == See also == | ||
*[[DirectX Versions]] | *[[DirectX Versions]] |
Revision as of 06:56, 3 June 2024


Furthermore, since around




mat_dxlevel changes the DirectX (feature level) mode used within a Source game. The player is only able to use modes that their hardware supports. The format is
mat_dxlevel [DirectX version] mat_dxlevel 70 mat_dxlevel 80 mat_dxlevel 81 - Softer shadow ...
For DirectX 9 the value depends on the hardware's capability:
mat_dxlevel 90 - DX9 with Shader Model 2 mat_dxlevel 95 - DX9 with Shader Model 3 mat_dxlevel 98 - Xbox 360 only mat_dxlevel 100 - Source Filmmaker only, this does not enable DirectX 10 support on vanilla (unmodified) engines.
This can also be specified with Launch Options, use +mat_dxlevel [DirectX version] on the launch options of any Source game to do so. Alternatively, you can use -dxlevel [DirectX version], however this specifies a number of extra presets, including but not limited to:
- Resolution
- Windowed/Fullscreen status
- MSAA quality (mat_aaquality) and sample count (mat_antialias)
- Motion blur (mat_motion_blur_*)
- Shadow depth textures
- Gamma (mat_monitorgamma)


Futhermore, -dxlevel should be only used a workaround to fix the issue that the game defaults on DX8 mode which may happens on some modern hardware.