GmodGeneralConsole reference
Rendering
Low-level rendering commands for visuals and display.
Rendering
Low-level rendering commands for visuals and display.
This is a reference of all r_* console commands. Use find r in the console to search within this category.
All Commands (285)
| Command | Default | Description |
|---|---|---|
r_3dsky | 1 | Enable the rendering of 3d sky boxes |
r_3dskyinreflection | 1 | Enable the rendering of 3d sky boxes in water reflection |
r_AirboatPitchCurveLinear | 60 | - |
r_AirboatPitchCurveZero | 25 | - |
r_AirboatRollCurveLinear | 120 | - |
r_AirboatRollCurveZero | 90 | - |
r_AirboatViewBlendTo | 1 | - |
r_AirboatViewBlendToScale | 0 | - |
r_AirboatViewBlendToTime | 1 | - |
r_ClipAreaFrustums | 1 | - |
r_ClipAreaPortals | 1 | - |
r_DispBuildable | 0 | - |
r_DispDrawAxes | 0 | - |
r_DispWalkable | 0 | - |
r_DrawBeams | 1 | 0=Off, 1=Normal, 2=Wireframe |
r_DrawDisp | 1 | Toggles rendering of displacment maps |
r_DrawModelLightOrigin | 0 | - |
r_DrawPortals | 0 | - |
r_DrawRain | 1 | Enable/disable rain rendering. |
r_DrawSpecificStaticProp | -1 | - |
r_ForceWaterLeaf | 1 | Enable for optimization to water - considers view in leaf under water for purposes of culling |
r_JeepFOV | 0 | - |
r_JeepViewBlendTo | 0 | - |
r_JeepViewBlendToScale | 0 | - |
r_JeepViewBlendToTime | 1 | - |
r_PhysPropStaticLighting | 1 | - |
r_PortalTestEnts | 1 | Clip entities against portal frustums. |
r_RainHack | 0 | - |
r_RainParticleDensity | 1000 | Density of Particle Rain 0-1 |
r_RainProfile | 0 | Enable/disable rain profiling. |
r_RainRadius | 1500 | - |
r_RainSideVel | 130 | How much sideways velocity rain gets. |
r_RainSimulate | 1 | Enable/disable rain simulation. |
r_RainSplashPercentage | 20 | - |
r_ShowViewerArea | 0 | - |
r_SnowColorBlue | 200 | Snow. |
r_SnowColorGreen | 175 | Snow. |
r_SnowColorRed | 150 | Snow. |
r_SnowDebugBox | 0 | Snow Debug Boxes. |
r_SnowEnable | 1 | Snow Enable |
r_SnowEndAlpha | 255 | Snow. |
r_SnowEndSize | 0 | Snow. |
r_SnowFallSpeed | 1 | Snow fall speed scale. |
r_SnowInsideRadius | 256 | Snow. |
r_SnowOutsideRadius | 1024 | Snow. |
r_SnowParticles | 500 | Snow. |
r_SnowPosScale | 1 | Snow. |
r_SnowRayEnable | 1 | Snow. |
r_SnowRayLength | 8192 | Snow. |
r_SnowRayRadius | 256 | Snow. |
r_SnowSpeedScale | 1 | Snow. |
r_SnowStartAlpha | 25 | Snow. |
r_SnowStartSize | 1 | Snow. |
r_SnowWindScale | 0 | Snow. |
r_SnowZoomOffset | 384 | Snow. |
r_SnowZoomRadius | 512 | Snow. |
r_VehicleViewClamp | 1 | - |
r_VehicleViewDampen | 0 | - |
r_WaterDrawReflection | 1 | Enable water reflection |
r_WaterDrawRefraction | 1 | Enable water refraction |
r_ambientboost | 1 | Set to boost ambient term if it is totally swamped by local lights |
r_ambientfactor | 5 | Boost ambient cube by no more than this factor |
r_ambientfraction | 0 | Fraction of direct lighting that ambient cube must be below to trigger boosting |
r_ambientlightingonly | 0 | Set this to 1 to light models with only ambient lighting (and no static lighting). |
r_ambientmin | 0 | Threshold above which ambient cube will not boost (i.e. it's already sufficiently bright |
r_aspectratio | 0 | - |
r_avglight | 1 | - |
r_avglightmap | 0 | - |
r_bloomtintb | 0 | - |
r_bloomtintexponent | 2 | - |
r_bloomtintg | 0 | - |
r_bloomtintr | 0 | - |
r_cheapwaterend | cmd | - |
r_cheapwaterstart | cmd | - |
r_cleardecals | cmd | Usage r_cleardecals <permanent>. |
r_colorstaticprops | 0 | - |
r_debugcheapwater | 0 | - |
r_debugrandomstaticlighting | 0 | Set to 1 to randomize static lighting for debugging. Must restart for change to take affect. |
r_decal_cover_count | 4 | - |
r_decal_overlap_area | 0 | - |
r_decal_overlap_count | 3 | - |
r_decals | 2048 | Maximum amount of decals to display. (Map reload required) |
r_decalstaticprops | 1 | Decal static props test |
r_depthoverlay | 0 | Replaces opaque objects with their grayscaled depth values. r_showz_power scales the output. |
r_dopixelvisibility | 1 | - |
r_drawbatchdecals | 1 | Render decals batched. |
r_drawbrushmodels | 1 | Render brush models. 0=Off, 1=Normal, 2=Wireframe |
r_drawclipbrushes | 0 | Draw clip brushes (red=NPC+player, pink=player, purple=NPC) |
r_drawdecals | 1 | Render decals. |
r_drawdetailprops | 1 | 0=Off, 1=Normal, 2=Wireframe |
r_drawentities | 1 | - |
r_drawflecks | 1 | - |
r_drawfuncdetail | 1 | Render func_detail |
r_drawleaf | -1 | Draw the specified leaf. |
r_drawlightcache | 0 | 0: off 1: draw light cache entries 2: draw rays |
r_drawlightinfo | 0 | - |
r_drawlights | 0 | - |
r_drawmodeldecals | 1 | - |
r_drawmodelstatsoverlay | 0 | - |
r_drawmodelstatsoverlaydistance | 500 | - |
r_drawmodelstatsoverlaymax | 1 | time in milliseconds beyond which a model overlay is fully red in r_drawmodelstatsoverlay 2 |
r_drawmodelstatsoverlaymin | 0 | time in milliseconds that a model must take to render before showing an overlay in r_drawmodelsta... |
r_drawopaquerenderables | 1 | - |
r_drawopaqueworld | 1 | - |
r_drawothermodels | 1 | 0=Off, 1=Normal, 2=Wireframe |
r_drawparticles | 1 | Enable/disable particle rendering |
r_drawpixelvisibility | 0 | Show the occlusion proxies |
r_drawrenderboxes | 0 | - |
r_drawropes | 1 | - |
r_drawskybox | 1 | - |
r_drawsprites | 1 | - |
r_drawstaticprops | 1 | 0=Off, 1=Normal, 2=Wireframe |
r_drawtranslucentrenderables | 1 | - |
r_drawtranslucentworld | 1 | - |
r_drawvgui | 1 | Enable the rendering of vgui panels |
r_drawviewmodel | 1 | - |
r_drawworld | 1 | Render the world. |
r_dscale_basefov | 90 | - |
r_dscale_fardist | 2000 | - |
r_dscale_farscale | 4 | - |
r_dscale_neardist | 100 | - |
r_dscale_nearscale | 1 | - |
r_dynamic | 1 | - |
r_dynamiclighting | 1 | - |
r_entityclips | 1 | - |
r_eyeglintlodpixels | 20 | The number of pixels wide an eyeball has to be before rendering an eyeglint. Is a floating point... |
r_eyemove | 1 | - |
r_eyes | 1 | - |
r_eyeshift_x | 0 | - |
r_eyeshift_y | 0 | - |
r_eyeshift_z | 0 | - |
r_eyesize | 0 | - |
r_eyewaterepsilon | 10 | - |
r_farz | -1 | Override the far clipping plane. -1 means to use the value in env_fog_controller. |
r_fastzreject | 0 | Activate/deactivates a fast z-setting algorithm to take advantage of hardware with fast z reject.... |
r_flashlightambient | 0 | - |
r_flashlightclip | 0 | - |
r_flashlightconstant | 0 | - |
r_flashlightculldepth | 1 | - |
r_flashlightdepthres | 1024 | - |
r_flashlightdepthtexture | 0 | - |
r_flashlightdrawclip | 0 | - |
r_flashlightdrawdepth | 0 | - |
r_flashlightdrawfrustum | 0 | - |
r_flashlightdrawfrustumbbox | 0 | - |
r_flashlightdrawsweptbbox | 0 | - |
r_flashlightfar | 750 | - |
r_flashlightfov | 60 | - |
r_flashlightladderdist | 40 | - |
r_flashlightlinear | 100 | - |
r_flashlightlockposition | 0 | - |
r_flashlightmodels | 1 | - |
r_flashlightnear | 4 | - |
r_flashlightnodraw | 0 | - |
r_flashlightoffsetx | 10 | - |
r_flashlightoffsety | -20 | - |
r_flashlightoffsetz | 24 | - |
r_flashlightquadratic | 0 | - |
r_flashlightrender | 1 | - |
r_flashlightrendermodels | 1 | - |
r_flashlightrenderworld | 1 | - |
r_flashlightscissor | 0 | - |
r_flashlightshadowatten | 0 | - |
r_flashlightupdatedepth | 1 | - |
r_flashlightvisualizetrace | 0 | - |
r_flex | 1 | - |
r_flushlod | cmd | Flush and reload LODs. |
r_frustumcullworld | 1 | - |
r_glint_alwaysdraw | 0 | - |
r_glint_procedural | 0 | - |
r_hunkalloclightmaps | 0 | - |
r_hwmorph | 1 | - |
r_itemblinkmax | 0 | - |
r_itemblinkrate | 4 | - |
r_lightaverage | 1 | Activates/deactivate light averaging |
r_lightcache_numambientsamples | 162 | number of random directions to fire rays when computing ambient lighting |
r_lightcache_zbuffercache | 0 | - |
r_lightcachecenter | 1 | - |
r_lightcachemodel | -1 | - |
r_lightinterp | 5 | Controls the speed of light interpolation, 0 turns off interpolation |
r_lightmap | -1 | - |
r_lightstyle | -1 | - |
r_lightwarpidentity | 0 | - |
r_lockpvs | 0 | Lock the PVS so you can fly around and inspect what is being drawn. |
r_lod | -1 | - |
r_mapextents | 16384 | Set the max dimension for the map. This determines the far clipping plane |
r_maxdlights | 32 | - |
r_maxmodeldecal | 50 | - |
r_maxnewsamples | 6 | - |
r_maxsampledist | 128 | - |
r_minnewsamples | 3 | - |
r_modelwireframedecal | 0 | - |
r_newflashlight | 1 | - |
r_nohw | 0 | - |
r_nosw | 0 | - |
r_novis | 0 | Turn off the PVS. |
r_occludeemaxarea | 0 | Prevents occlusion testing for entities that take up more than X% of the screen. 0 means use what... |
r_occluderminarea | 0 | Prevents this occluder from being used if it takes up less than X% of the screen. 0 means use wha... |
r_occludermincount | 0 | At least this many occluders will be used, no matter how big they are. |
r_occlusion | 1 | Activate/deactivate the occlusion system. |
r_occlusionspew | 0 | Activate/deactivates spew about what the occlusion system is doing. |
r_oldlightselection | 0 | Set this to revert to HL2's method of selecting lights |
r_overlayfadeenable | 0 | - |
r_overlayfademax | 2000 | - |
r_overlayfademin | 1750 | - |
r_overlaywireframe | 0 | - |
r_particle_sim_spike_threshold_ms | 5 | - |
r_partition_level | -1 | Displays a particular level of the spatial partition system. Use -1 to disable it. |
r_pix_recordframes | 0 | - |
r_pix_start | 0 | - |
r_pixelfog | 1 | - |
r_pixelvisibility_partial | 1 | - |
r_pixelvisibility_spew | 0 | - |
r_portalscloseall | 0 | - |
r_portalsopenall | 0 | Open all portals |
r_printdecalinfo | cmd | - |
r_projectedtexture_filter | 1 | - |
r_proplightingfromdisk | 1 | 0=Off, 1=On, 2=Show Errors |
r_proplightingpooling | -1 | 0 - off, 1 - static prop color meshes are allocated from a single shared vertex buffer (on hardwa... |
r_queued_ropes | 1 | - |
r_radiosity | 3 | 0: no radiosity 1: radiosity with ambient cube (6 samples) 2: radiosity with 162 samples 3: 162 s... |
r_rainalpha | 0 | - |
r_rainalphapow | 0 | - |
r_raindensity | 0 | - |
r_rainlength | 0 | - |
r_rainspeed | 600 | - |
r_rainwidth | 0 | - |
r_randomflex | 0 | - |
r_renderoverlayfragment | 1 | - |
r_rimlight | 1 | - |
r_rootlod | 2 | Root LOD |
r_ropetranslucent | 1 | - |
r_screenfademaxsize | 0 | - |
r_screenfademinsize | 0 | - |
r_screenoverlay | cmd | Draw specified material as an overlay |
r_sequence_debug | 0 | - |
r_shader_srgb | 0 | -1 = use hardware caps. 0 = use hardware srgb. 1 = use shader srgb(software lookup) |
r_shader_srgbread | 0 | 1 = use shader srgb texture reads, 0 = use HW |
r_shadow_allowbelow | 0 | Allow r_shadowfromworldlights to alter shadow angles from light sources below entity's position. |
r_shadow_allowdynamic | 0 | Allow r_shadowfromworldlights to alter shadow angles from dynamic light sources as well. |
r_shadow_lightpos_lerptime | 0 | - |
r_shadow_shortenfactor | 2 | Makes shadows cast from local lights shorter |
r_shadowangles | cmd | Set shadow angles |
r_shadowblobbycutoff | cmd | some shadow stuff |
r_shadowcolor | cmd | Set shadow color |
r_shadowdir | cmd | Set shadow direction |
r_shadowdist | cmd | Set shadow distance |
r_shadowfromanyworldlight | 0 | Enables shadowing from ANY world light |
r_shadowfromworldlights | 1 | Enable shadowing from world lights |
r_shadowids | 0 | - |
r_shadowmaxrendered | 32 | - |
r_shadowrendertotexture | 0 | - |
r_shadows | 1 | - |
r_shadows_gamecontrol | -1 | - |
r_shadowwireframe | 0 | - |
r_showenvcubemap | 0 | - |
r_showz_power | 1 | - |
r_skin | 0 | - |
r_skybox | 1 | Enable the rendering of sky boxes |
r_snapportal | -1 | - |
r_spray_lifetime | 2 | Number of rounds player sprays are visible |
r_sse2 | cmd | Enable/disable SSE2 code |
r_sse_s | 1 | sse ins for particle sphere create |
r_staticprop_lod | -1 | - |
r_staticpropinfo | 0 | - |
r_studio_stats | 0 | - |
r_studio_stats_lock | 0 | Lock the current studio stats entity selection |
r_studio_stats_mode | 0 | Sets a mode for r_studio_stats. Modes are as follows: 0 = Entity under your crosshair 1 = Weapo... |
r_swingflashlight | 1 | - |
r_teeth | 1 | - |
r_threaded_particles | 1 | - |
r_unloadlightmaps | 0 | - |
r_updaterefracttexture | 1 | - |
r_vehicleBrakeRate | 1 | - |
r_visambient | 0 | Draw leaf ambient lighting samples. Needs mat_leafvis 1 to work |
r_visocclusion | 0 | Activate/deactivate wireframe rendering of what the occlusion system is doing. |
r_visualizelighttraces | 0 | - |
r_visualizelighttracesshowfulltrace | 0 | - |
r_visualizeproplightcaching | 0 | - |
r_visualizetraces | 0 | - |
r_waterforceexpensive | 0 | - |
r_waterforcereflectentities | 0 | - |
r_worldlightmin | 0 | - |
r_worldlights | 4 | number of world lights to use per vertex |
r_worldlistcache | 1 | - |