Justified
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)

CommandDefaultDescription
mat_aaquality0-
mat_accelerate_adjust_exposure_down3-
mat_alphacoverage1-
mat_ambient_light_b0-
mat_ambient_light_g0-
mat_ambient_light_r0-
mat_antialias1-
mat_autoexposure_max2-
mat_autoexposure_min0-
mat_bloom_scalefactor_scalar1-
mat_bloomamount_rate0-
mat_bloomscale1-
mat_bufferprimitives1-
mat_bumpbasis0-
mat_bumpmap1-
mat_camerarendertargetoverlaysize256-
mat_clipz1-
mat_colcorrection_disableentities0Disable map color-correction entities
mat_colcorrection_editor0-
mat_color_projection0-
mat_colorcorrection0-
mat_compressedtextures1-
mat_configcurrentcmdshow the current video control panel config for the material system
mat_crosshaircmdDisplay the name of the material under the crosshair
mat_crosshair_printmaterialcmdprint the material under the crosshair
mat_crosshair_reloadmaterialcmdreload the material under the crosshair
mat_debug_autoexposure0-
mat_debug_bloom0-
mat_debug_postprocessing_effects00 = off, 1 = show post-processing passes in quadrants of the screen, 2 = only apply post-processi...
mat_debug_process_halfscreen0-
mat_debugalttab0-
mat_debugdepth0-
mat_debugdepthmode0-
mat_debugdepthval128-
mat_debugdepthvalmax256-
mat_depthbias_decal-262144-
mat_depthbias_normal0-
mat_depthbias_shadowmap0-
mat_diffuse1-
mat_disable_bloom0-
mat_disable_d3d9ex0Disables Windows Aero DirectX extensions (may positively or negatively affect performance dependi...
mat_disable_fancy_blending0-
mat_disable_lightwarp0-
mat_disable_ps_patch0-
mat_disablehwmorph0-
mat_drawTexture0Enable debug view texture
mat_drawTextureScale1Debug view texture scale
mat_drawTitleSafe0Enable title safe overlay
mat_drawflat0-
mat_drawwater1-
mat_dump_rts0-
mat_dumpmaterialscmd<skip0refs> Dump all materials for debugging
mat_dumptexturescmdDump all textures for debugging
mat_dxlevel95-
mat_dynamic_tonemapping1-
mat_editcmdBring up the material under the crosshair in the editor
mat_envmapsize128-
mat_envmaptgasize32-
mat_excludetextures0-
mat_exposure_center_region_x0-
mat_exposure_center_region_x_flashlight0-
mat_exposure_center_region_y0-
mat_exposure_center_region_y_flashlight0-
mat_fastclip0-
mat_fastnobump0-
mat_fastspecular1Enable/Disable specularity for visual testing. Will not reload materials and will not affect perf.
mat_fillrate0-
mat_filterlightmaps1-
mat_filtertextures1-
mat_force_bloom0-
mat_force_ps_patch0-
mat_force_tonemap_scale0-
mat_forceaniso1-
mat_forcedynamic0-
mat_forcehardwaresync1-
mat_forcemanagedtextureintohardware0-
mat_frame_sync_enable1-
mat_frame_sync_force_texture0Force frame syncing to lock a managed texture.
mat_framebuffercopyoverlaysize256-
mat_fullbright0-
mat_hdr_enabledcmdReport if HDR is enabled for debugging
mat_hdr_level0Set to 0 for no HDR, 1 for LDR+bloom on HDR maps, and 2 for full HDR on HDR maps.
mat_hdr_manual_tonemap_rate1-
mat_hdr_tonemapscale1The HDR tonemap scale. 1 = Use autoexposure, 0 = eyes fully closed, 16 = eyes wide open.
mat_hdr_uncapexposure0-
mat_hsv0-
mat_infocmdShows material system info
mat_leafvis0Draw wireframe of current leaf
mat_levelflush1-
mat_lightmap_pfms0Outputs .pfm files containing lightmap data for each lightmap page when a level exits.
mat_loadtextures1-
mat_luxels0-
mat_managedtextures1If set, allows Direct3D to manage texture uploading at the cost of extra system memory
mat_measurefillrate0-
mat_mipmaptextures1-
mat_monitorgamma2monitor gamma (typically 2.2 for CRT and 1.7 for LCD)
mat_monitorgamma_tv_enabled0-
mat_monitorgamma_tv_exp2-
mat_monitorgamma_tv_range_max255-
mat_monitorgamma_tv_range_min16-
mat_morphstats0-
mat_motion_blur_enabled0-
mat_motion_blur_falling_intensity1-
mat_motion_blur_falling_max20-
mat_motion_blur_falling_min10-
mat_motion_blur_forward_enabled0-
mat_motion_blur_percent_of_screen_max4-
mat_motion_blur_rotation_intensity1-
mat_motion_blur_strength1-
mat_non_hdr_bloom_scalefactor0-
mat_norendering0-
mat_normalmaps0-
mat_normals0-
mat_picmip2-
mat_postprocess_x4-
mat_postprocess_y1-
mat_postprocessing_combine1Combine bloom, software anti-aliasing and color correction into one post-processing pass
mat_powersavingsmode0Power Savings Mode
mat_proxy0-
mat_queue_mode-1The queue/thread mode the material system should use: -1=default, 0=synchronous single thread, 2=...
mat_queue_report0Report thread stalls. Positive number will filter by stalls >= time in ms. -1 reports all lo...
mat_reducefillrate1-
mat_reduceparticles0-
mat_reloadallmaterialscmdReloads all materials
mat_reloadmaterialcmdReloads a single material
mat_reloadtexturecmdReloads a single texture
mat_reloadtexturescmdReloads all textures
mat_report_queue_status0-
mat_reporthwmorphmemorycmdReports the amount of size in bytes taken up by hardware morph textures.
mat_reversedepth0-
mat_savechangescmdsaves current video configuration to the registry
mat_setvideomodecmdsets the width, height, windowed state of the material system
mat_shadercountcmddisplay count of all shaders and reset that count
mat_show_ab_hdr0-
mat_show_ab_hdr_hudelement0HDR Demo HUD Element toggle.
mat_show_histogram0-
mat_show_texture_memory_usage0Display the texture memory usage on the HUD.
mat_showcamerarendertarget0-
mat_showenvmapmask0-
mat_showframebuffertexture0-
mat_showlightmappage-1-
mat_showlowresimage0-
mat_showmaterialscmdShow materials.
mat_showmaterialsverbosecmdShow materials (verbose version).
mat_showmiplevels0color-code miplevels 2: normalmaps, 1: everything else
mat_showtexturescmdShow used textures.
mat_showwatertextures0-
mat_slopescaledepthbias_decal0-
mat_slopescaledepthbias_normal0-
mat_slopescaledepthbias_shadowmap2-
mat_software_aa_blur_one_pixel_lines0How much software AA should blur one-pixel thick lines: (0.0 - none), (1.0 - lots)
mat_software_aa_debug0Software AA debug mode: (0 - off), (1 - show number of 'unlike' samples: 0->black, 1->red, ...
mat_software_aa_edge_threshold1Software AA - adjusts the sensitivity of the software AA shader's edge detection (default 1.0 - a...
mat_software_aa_quality0Software AA quality mode: (0 - 5-tap filter), (1 - 9-tap filter)
mat_software_aa_strength0Software AA - perform a software anti-aliasing post-process (an alternative/supplement to MSAA). ...
mat_software_aa_strength_vgui1Same as mat_software_aa_strength, but forced to this value when called by the post vgui AA pass.
mat_software_aa_tap_offset1Software AA - adjusts the displacement of the taps used by the software AA shader (default 1.0 - ...
mat_softwarelighting0-
mat_softwareskin0-
mat_specular1Enable/Disable specularity for perf testing. Will cause a material reload upon change.
mat_spewvertexandpixelshaderscmdPrint all vertex and pixel shaders currently loaded to the console
mat_supportflashlight10 - do not support flashlight (don't load flashlight shader combos), 1 - flashlight is supported
mat_surfacemat0-
mat_texture_list0For debugging, show a list of used textures per frame
mat_texture_list_all0If this is nonzero, then the texture list panel will show all currently-loaded textures.
mat_texture_list_txlodcmdAdjust LOD of the last viewed texture +1 to inc resolution, -1 to dec resolution
mat_texture_list_txlod_synccmd'reset' - resets all run-time changes to LOD overrides, 'save' - saves all changes to material co...
mat_texture_list_view1If this is nonzero, then the texture list panel will render thumbnails of currently-loaded textures.
mat_texture_save_fontscmdSave all font textures
mat_tonemap_algorithm10 = Original Algorithm 1 = New Algorithm
mat_tonemap_min_avglum3-
mat_tonemap_percent_bright_pixels2-
mat_tonemap_percent_target60-
mat_tonemapping_occlusion_use_stencil0-
mat_trilinear0-
mat_use_compressed_hdr_textures1-
mat_viewportscale1Scale down the main viewport (to reduce GPU impact on CPU profiling)
mat_viewportupscale1Scale the viewport back up
mat_visualize_dof0-
mat_vsync0Force sync to vertical retrace
mat_wateroverlaysize256-
mat_wireframe0-
mat_yuv0-

On this page