GmodGeneralConsole reference
Graphics & Materials
Console commands for graphics, materials, textures, and rendering quality.
Graphics & Materials
Console commands for graphics, materials, textures, and rendering quality.
This is a reference of all mat_* console commands. Use find mat in the console to search within this category.
All Commands (183)
| Command | Default | Description |
|---|---|---|
mat_aaquality | 0 | - |
mat_accelerate_adjust_exposure_down | 3 | - |
mat_alphacoverage | 1 | - |
mat_ambient_light_b | 0 | - |
mat_ambient_light_g | 0 | - |
mat_ambient_light_r | 0 | - |
mat_antialias | 1 | - |
mat_autoexposure_max | 2 | - |
mat_autoexposure_min | 0 | - |
mat_bloom_scalefactor_scalar | 1 | - |
mat_bloomamount_rate | 0 | - |
mat_bloomscale | 1 | - |
mat_bufferprimitives | 1 | - |
mat_bumpbasis | 0 | - |
mat_bumpmap | 1 | - |
mat_camerarendertargetoverlaysize | 256 | - |
mat_clipz | 1 | - |
mat_colcorrection_disableentities | 0 | Disable map color-correction entities |
mat_colcorrection_editor | 0 | - |
mat_color_projection | 0 | - |
mat_colorcorrection | 0 | - |
mat_compressedtextures | 1 | - |
mat_configcurrent | cmd | show the current video control panel config for the material system |
mat_crosshair | cmd | Display the name of the material under the crosshair |
mat_crosshair_printmaterial | cmd | print the material under the crosshair |
mat_crosshair_reloadmaterial | cmd | reload the material under the crosshair |
mat_debug_autoexposure | 0 | - |
mat_debug_bloom | 0 | - |
mat_debug_postprocessing_effects | 0 | 0 = off, 1 = show post-processing passes in quadrants of the screen, 2 = only apply post-processi... |
mat_debug_process_halfscreen | 0 | - |
mat_debugalttab | 0 | - |
mat_debugdepth | 0 | - |
mat_debugdepthmode | 0 | - |
mat_debugdepthval | 128 | - |
mat_debugdepthvalmax | 256 | - |
mat_depthbias_decal | -262144 | - |
mat_depthbias_normal | 0 | - |
mat_depthbias_shadowmap | 0 | - |
mat_diffuse | 1 | - |
mat_disable_bloom | 0 | - |
mat_disable_d3d9ex | 0 | Disables Windows Aero DirectX extensions (may positively or negatively affect performance dependi... |
mat_disable_fancy_blending | 0 | - |
mat_disable_lightwarp | 0 | - |
mat_disable_ps_patch | 0 | - |
mat_disablehwmorph | 0 | - |
mat_drawTexture | 0 | Enable debug view texture |
mat_drawTextureScale | 1 | Debug view texture scale |
mat_drawTitleSafe | 0 | Enable title safe overlay |
mat_drawflat | 0 | - |
mat_drawwater | 1 | - |
mat_dump_rts | 0 | - |
mat_dumpmaterials | cmd | <skip0refs> Dump all materials for debugging |
mat_dumptextures | cmd | Dump all textures for debugging |
mat_dxlevel | 95 | - |
mat_dynamic_tonemapping | 1 | - |
mat_edit | cmd | Bring up the material under the crosshair in the editor |
mat_envmapsize | 128 | - |
mat_envmaptgasize | 32 | - |
mat_excludetextures | 0 | - |
mat_exposure_center_region_x | 0 | - |
mat_exposure_center_region_x_flashlight | 0 | - |
mat_exposure_center_region_y | 0 | - |
mat_exposure_center_region_y_flashlight | 0 | - |
mat_fastclip | 0 | - |
mat_fastnobump | 0 | - |
mat_fastspecular | 1 | Enable/Disable specularity for visual testing. Will not reload materials and will not affect perf. |
mat_fillrate | 0 | - |
mat_filterlightmaps | 1 | - |
mat_filtertextures | 1 | - |
mat_force_bloom | 0 | - |
mat_force_ps_patch | 0 | - |
mat_force_tonemap_scale | 0 | - |
mat_forceaniso | 1 | - |
mat_forcedynamic | 0 | - |
mat_forcehardwaresync | 1 | - |
mat_forcemanagedtextureintohardware | 0 | - |
mat_frame_sync_enable | 1 | - |
mat_frame_sync_force_texture | 0 | Force frame syncing to lock a managed texture. |
mat_framebuffercopyoverlaysize | 256 | - |
mat_fullbright | 0 | - |
mat_hdr_enabled | cmd | Report if HDR is enabled for debugging |
mat_hdr_level | 0 | Set to 0 for no HDR, 1 for LDR+bloom on HDR maps, and 2 for full HDR on HDR maps. |
mat_hdr_manual_tonemap_rate | 1 | - |
mat_hdr_tonemapscale | 1 | The HDR tonemap scale. 1 = Use autoexposure, 0 = eyes fully closed, 16 = eyes wide open. |
mat_hdr_uncapexposure | 0 | - |
mat_hsv | 0 | - |
mat_info | cmd | Shows material system info |
mat_leafvis | 0 | Draw wireframe of current leaf |
mat_levelflush | 1 | - |
mat_lightmap_pfms | 0 | Outputs .pfm files containing lightmap data for each lightmap page when a level exits. |
mat_loadtextures | 1 | - |
mat_luxels | 0 | - |
mat_managedtextures | 1 | If set, allows Direct3D to manage texture uploading at the cost of extra system memory |
mat_measurefillrate | 0 | - |
mat_mipmaptextures | 1 | - |
mat_monitorgamma | 2 | monitor gamma (typically 2.2 for CRT and 1.7 for LCD) |
mat_monitorgamma_tv_enabled | 0 | - |
mat_monitorgamma_tv_exp | 2 | - |
mat_monitorgamma_tv_range_max | 255 | - |
mat_monitorgamma_tv_range_min | 16 | - |
mat_morphstats | 0 | - |
mat_motion_blur_enabled | 0 | - |
mat_motion_blur_falling_intensity | 1 | - |
mat_motion_blur_falling_max | 20 | - |
mat_motion_blur_falling_min | 10 | - |
mat_motion_blur_forward_enabled | 0 | - |
mat_motion_blur_percent_of_screen_max | 4 | - |
mat_motion_blur_rotation_intensity | 1 | - |
mat_motion_blur_strength | 1 | - |
mat_non_hdr_bloom_scalefactor | 0 | - |
mat_norendering | 0 | - |
mat_normalmaps | 0 | - |
mat_normals | 0 | - |
mat_picmip | 2 | - |
mat_postprocess_x | 4 | - |
mat_postprocess_y | 1 | - |
mat_postprocessing_combine | 1 | Combine bloom, software anti-aliasing and color correction into one post-processing pass |
mat_powersavingsmode | 0 | Power Savings Mode |
mat_proxy | 0 | - |
mat_queue_mode | -1 | The queue/thread mode the material system should use: -1=default, 0=synchronous single thread, 2=... |
mat_queue_report | 0 | Report thread stalls. Positive number will filter by stalls >= time in ms. -1 reports all lo... |
mat_reducefillrate | 1 | - |
mat_reduceparticles | 0 | - |
mat_reloadallmaterials | cmd | Reloads all materials |
mat_reloadmaterial | cmd | Reloads a single material |
mat_reloadtexture | cmd | Reloads a single texture |
mat_reloadtextures | cmd | Reloads all textures |
mat_report_queue_status | 0 | - |
mat_reporthwmorphmemory | cmd | Reports the amount of size in bytes taken up by hardware morph textures. |
mat_reversedepth | 0 | - |
mat_savechanges | cmd | saves current video configuration to the registry |
mat_setvideomode | cmd | sets the width, height, windowed state of the material system |
mat_shadercount | cmd | display count of all shaders and reset that count |
mat_show_ab_hdr | 0 | - |
mat_show_ab_hdr_hudelement | 0 | HDR Demo HUD Element toggle. |
mat_show_histogram | 0 | - |
mat_show_texture_memory_usage | 0 | Display the texture memory usage on the HUD. |
mat_showcamerarendertarget | 0 | - |
mat_showenvmapmask | 0 | - |
mat_showframebuffertexture | 0 | - |
mat_showlightmappage | -1 | - |
mat_showlowresimage | 0 | - |
mat_showmaterials | cmd | Show materials. |
mat_showmaterialsverbose | cmd | Show materials (verbose version). |
mat_showmiplevels | 0 | color-code miplevels 2: normalmaps, 1: everything else |
mat_showtextures | cmd | Show used textures. |
mat_showwatertextures | 0 | - |
mat_slopescaledepthbias_decal | 0 | - |
mat_slopescaledepthbias_normal | 0 | - |
mat_slopescaledepthbias_shadowmap | 2 | - |
mat_software_aa_blur_one_pixel_lines | 0 | How much software AA should blur one-pixel thick lines: (0.0 - none), (1.0 - lots) |
mat_software_aa_debug | 0 | Software AA debug mode: (0 - off), (1 - show number of 'unlike' samples: 0->black, 1->red, ... |
mat_software_aa_edge_threshold | 1 | Software AA - adjusts the sensitivity of the software AA shader's edge detection (default 1.0 - a... |
mat_software_aa_quality | 0 | Software AA quality mode: (0 - 5-tap filter), (1 - 9-tap filter) |
mat_software_aa_strength | 0 | Software AA - perform a software anti-aliasing post-process (an alternative/supplement to MSAA). ... |
mat_software_aa_strength_vgui | 1 | Same as mat_software_aa_strength, but forced to this value when called by the post vgui AA pass. |
mat_software_aa_tap_offset | 1 | Software AA - adjusts the displacement of the taps used by the software AA shader (default 1.0 - ... |
mat_softwarelighting | 0 | - |
mat_softwareskin | 0 | - |
mat_specular | 1 | Enable/Disable specularity for perf testing. Will cause a material reload upon change. |
mat_spewvertexandpixelshaders | cmd | Print all vertex and pixel shaders currently loaded to the console |
mat_supportflashlight | 1 | 0 - do not support flashlight (don't load flashlight shader combos), 1 - flashlight is supported |
mat_surfacemat | 0 | - |
mat_texture_list | 0 | For debugging, show a list of used textures per frame |
mat_texture_list_all | 0 | If this is nonzero, then the texture list panel will show all currently-loaded textures. |
mat_texture_list_txlod | cmd | Adjust LOD of the last viewed texture +1 to inc resolution, -1 to dec resolution |
mat_texture_list_txlod_sync | cmd | 'reset' - resets all run-time changes to LOD overrides, 'save' - saves all changes to material co... |
mat_texture_list_view | 1 | If this is nonzero, then the texture list panel will render thumbnails of currently-loaded textures. |
mat_texture_save_fonts | cmd | Save all font textures |
mat_tonemap_algorithm | 1 | 0 = Original Algorithm 1 = New Algorithm |
mat_tonemap_min_avglum | 3 | - |
mat_tonemap_percent_bright_pixels | 2 | - |
mat_tonemap_percent_target | 60 | - |
mat_tonemapping_occlusion_use_stencil | 0 | - |
mat_trilinear | 0 | - |
mat_use_compressed_hdr_textures | 1 | - |
mat_viewportscale | 1 | Scale down the main viewport (to reduce GPU impact on CPU profiling) |
mat_viewportupscale | 1 | Scale the viewport back up |
mat_visualize_dof | 0 | - |
mat_vsync | 0 | Force sync to vertical retrace |
mat_wateroverlaysize | 256 | - |
mat_wireframe | 0 | - |
mat_yuv | 0 | - |