Garry's Mod Wiki

Revision Difference

Shaders#520162

<cat>Dev</cat> A list of shaders accessible from Lua. ### Garry's Mod Specific Shaders Name | Description | -----|-------------| | <page>g_blurx | </page> | Blurs a texture horizontally. | | <page>g_blury | </page> | Blurs a texture vertically. | | <page>g_bokehblur | </page> | | | <page>g_colourmodify | </page> | | | <page>g_downsample | </page> | | | <page>g_normals | </page> | | | <page>g_position | </page> | | | <page>g_refract | </page> | | | <page>g_sharpen | </page> | | | <page>g_sky | </page> | | | <page>g_sunbeams | </page> | | | <page>g_texturize | </page> | | | <page>gmodscreenspace | </page> | | | <page>Sobel | </page> | | | <page text="g_blurx">Shaders/g_blurx</page> | Blurs a texture horizontally. | | <page text="g_blury">Shaders/g_blury</page> | Blurs a texture vertically. | | <page text="g_bokehblur">Shaders/g_bokehblur</page> | | | <page text="g_colourmodify">Shaders/g_colourmodify</page> | | | <page text="g_downsample">Shaders/g_downsample</page> | | | <page text="g_normals">Shaders/g_normals</page> | | | <page text="g_position">Shaders/g_position</page> | | | <page text="g_refract">Shaders/g_refract</page> | | | <page text="g_sharpen">Shaders/g_sharpen</page> | | | <page text="g_sky">Shaders/g_sky</page> | | | <page text="g_sunbeams">Shaders/g_sunbeams</page> | | | <page text="g_texturize">Shaders/g_texturize</page> | | | <page text="gmodscreenspace">Shaders/gmodscreenspace</page> | | | <page text="sobel">Shaders/sobel</page> | | ### Source Engine Shaders Name | Description | -----|-------------| | <page>accumbuff5sample | </page> | | | <page>Aftershock_dx9 | </page> | | | <page>Bik | </page> | | | <page>Bik_dx80 | </page> | | | <page>Bik_dx81 | </page> | | | <page>Bloom | </page> | | | <page>BlurFilterX | </page> | | | <page>BlurFilterX_DX80 | </page> | | | <page>BlurFilterY | </page> | | | <page>BlurFilterY_DX80 | </page> | | | <page>BufferClearObeyStencil_DX8 | </page> | | | <page>BufferClearObeyStencil_DX9 | </page> | | | <page>Cable_DX8 | </page> | | | <page>Cable_DX9 | </page> | | | <page>Cloak_DX90 | </page> | | | <page>ColorCorrection | </page> | | | <page>Core_DX80 | </page> | | | <page>Core_DX90 | </page> | | | <page>DebugDrawEnvmapMask | </page> | | | <page>DebugMorphAccumulator | </page> | | | <page>DebugMRTTexture | </page> | | | <page>DebugNormalMap | </page> | | | <page>DebugTextureView_dx9 | </page> | | | <page>DecalBaseTimesLightmapAlphaBlendSelfIllum_DX8 | </page> | | | <page>DecalBaseTimesLightmapAlphaBlendSelfIllum_DX9 | </page> | | | <page>DecalModulate_dx9 | </page> | | | <page>DepthWrite | </page> | | | <page>Downsample | </page> | | | <page>Downsample_nohdr | </page> | | | <page>Downsample_nohdr_DX80 | </page> | | | <page>Engine_Post_dx9 | </page> | | | <page>EyeGlint_dx9 | </page> | | | <page>EyeRefract_dx9 | </page> | | | <page>Eyes_dx6 | </page> | | | <page>Eyes_dx8 | </page> | | | <page>Eyes_dx9 | </page> | | | <page>Fillrate | </page> | | | <page>floatcombine | </page> | | | <page>floatcombine_autoexpose | </page> | | | <page>floattoscreen | </page> | | | <page>floattoscreen_vanilla | </page> | | | <page>GooInGlass | </page> | | | <page>HDRCombineTo16Bit | </page> | | | <page>HDRSelectRange | </page> | | | <page>hsl_filmgrain_pass1 | </page> | | | <page>hsl_filmgrain_pass2 | </page> | | | <page>HSV | </page> | | | <page>IntroScreenSpaceEffect | </page> | | | <page>IntroScreenSpaceEffect_dx80 | </page> | | | <page>LightmappedGeneric | </page> | The shader used for world brushes. | | <page>LightmappedGeneric_Decal | </page> | | | <page>LightmappedGeneric_DX8 | </page> | | | <page>LightmappedReflective | </page> | Used for water reflections? | | <page>LightmappedReflective_DX90 | </page> | | | <page>Modulate | </page> | | | <page>Modulate_DX8 | </page> | | | <page>Modulate_DX9 | </page> | | | <page>MorphAccumulate_DX9 | </page> | | | <page>MorphWeight_DX9 | </page> | | | <page>MotionBlur_dx9 | </page> | | | <page>Occlusion_DX8 | </page> | | | <page>Occlusion_DX9 | </page> | | | <page>Overlay_Fit | </page> | | | <page>Portal_DX60 | </page> | | | <page>Portal_DX80 | </page> | | | <page>Portal_DX90 | </page> | | | <page>PortalRefract_dx8 | </page> | | | <page>PortalRefract_dx9 | </page> | | | <page>PortalStaticOverlay | </page> | | | <page>PortalStaticOverlay | </page> | | | <page>PortalStaticOverlay_DX60 | </page> | | | <page>Predator_DX80 | </page> | | | <page>Refract | </page> | | | <page>Refract_DX80 | </page> | | | <page>Refract_DX90 | </page> | | | <page>Sample4x4 | </page> | | | <page>Sample4x4_Blend | </page> | | | <page>screenspace_general_dx8 | </page> | | | <page>screenspace_general_dx9 | </page> | | | <page>sfm_blurfilterx_shader | </page> | | | <page>sfm_blurfiltery_shader | </page> | | | <page>sfm_downsample_shader | </page> | | | <page>sfm_integercombine_shader | </page> | | | <page>Shadow | </page> | | | <page>Shadow_DX8 | </page> | | | <page>ShadowBuild_DX8 | </page> | | | <page>ShadowBuild_DX9 | </page> | | | <page>ShadowModel_DX8 | </page> | | | <page>ShadowModel_DX9 | </page> | | | <page>ShatteredGlass | </page> | | | <page>ShatteredGlass_DX8 | </page> | | | <page>showz | </page> | | | <page>Sky_DX9 | </page> | | | <page>Sky_HDR_DX9 | </page> | | | <page>Sprite_DX8 | </page> | | | <page>Sprite_DX9 | </page> | | | <page>Spritecard | </page> | | | <page>Spritecard_DX8 | </page> | | | <page>Teeth_DX6 | </page> | | | <page>Teeth_DX8 | </page> | | | <page>Teeth_DX9 | </page> | | | <page>TreeLeaf | </page> | | | <page>UnlitGeneric | </page> | The shader used for GUI materials | | <page>UnlitGeneric_DX8 | </page> | | | <page>UnlitTwoTexture_DX8 | </page> | | | <page>UnlitTwoTexture_DX9 | </page> | | | <page>VertexLitGeneric | </page> | The shader used for models. | | <page>VertexLitGeneric_DX8 | </page> | | | <page>VolumeClouds_dx9 | </page> | | | <page>VortWarp_dx8 | </page> | | | <page>VortWarp_DX9 | </page> | | | <page>Water_DX81 | </page> | | | <page>Water_DX90 | </page> | | | <page>WindowImposter_DX80 | </page> | | | <page>WindowImposter_DX90 | </page> | | | <page>Wireframe_DX8 | </page> | | | <page>Wireframe_DX9 | </page> | | | <page>WorldTwoTextureBlend | </page> | | | <page>WorldTwoTextureBlend_DX8 | </page> | | | <page>WorldVertexAlpha_DX8 | </page> | | | <page>WorldVertexTransition_DX8 | </page> | | | <page>WorldVertexTransition_DX9 | </page> | | | <page>WriteStencil_DX8 | </page> | | | <page>WriteStencil_DX9 | </page> | | | <page>WriteZ_DX8 | </page> | | | <page>WriteZ_DX9 | </page> | | | <page>YUV | </page> | |⤶ ⤶ ⤶ ⤶ ⤶ | <page text="accumbuff5sample">Shaders/accumbuff5sample</page> | | | <page text="Aftershock_dx9">Shaders/Aftershock_dx9</page> | | | <page text="Bik">Shaders/Bik</page> | | | <page text="Bik_dx80">Shaders/Bik_dx80</page> | | | <page text="Bik_dx81">Shaders/Bik_dx81</page> | | | <page text="Bloom">Shaders/Bloom</page> | | | <page text="BlurFilterX">Shaders/BlurFilterX</page> | | | <page text="BlurFilterX_DX80">Shaders/BlurFilterX_DX80</page> | | | <page text="BlurFilterY">Shaders/BlurFilterY</page> | | | <page text="BlurFilterY_DX80">Shaders/BlurFilterY_DX80</page> | | | <page text="BufferClearObeyStencil_DX8">Shaders/BufferClearObeyStencil_DX8</page> | | | <page text="BufferClearObeyStencil_DX9">Shaders/BufferClearObeyStencil_DX9</page> | | | <page text="Cable_DX8">Shaders/Cable_DX8</page> | | | <page text="Cable_DX9">Shaders/Cable_DX9</page> | | | <page text="Cloak_DX90">Shaders/Cloak_DX90</page> | | | <page text="ColorCorrection">Shaders/ColorCorrection</page> | | | <page text="Core_DX80">Shaders/Core_DX80</page> | | | <page text="Core_DX90">Shaders/Core_DX90</page> | | | <page text="DebugDrawEnvmapMask">Shaders/DebugDrawEnvmapMask</page> | | | <page text="DebugMorphAccumulator">Shaders/DebugMorphAccumulator</page> | | | <page text="DebugMRTTexture">Shaders/DebugMRTTexture</page> | | | <page text="DebugNormalMap">Shaders/DebugNormalMap</page> | | | <page text="DebugTextureView_dx9">Shaders/DebugTextureView_dx9</page> | | | <page text="DecalBaseTimesLightmapAlphaBlendSelfIllum_DX8">Shaders/DecalBaseTimesLightmapAlphaBlendSelfIllum_DX8</page> | | | <page text="DecalBaseTimesLightmapAlphaBlendSelfIllum_DX9">Shaders/DecalBaseTimesLightmapAlphaBlendSelfIllum_DX9</page> | | | <page text="DecalModulate_dx9">Shaders/DecalModulate_dx9</page> | | | <page text="DepthWrite">Shaders/DepthWrite</page> | | | <page text="Downsample">Shaders/Downsample</page> | | | <page text="Downsample_nohdr">Shaders/Downsample_nohdr</page> | | | <page text="Downsample_nohdr_DX80">Shaders/Downsample_nohdr_DX80</page> | | | <page text="Engine_Post_dx9">Shaders/Engine_Post_dx9</page> | | | <page text="EyeGlint_dx9">Shaders/EyeGlint_dx9</page> | | | <page text="EyeRefract_dx9">Shaders/EyeRefract_dx9</page> | | | <page text="Eyes_dx6">Shaders/Eyes_dx6</page> | | | <page text="Eyes_dx8">Shaders/Eyes_dx8</page> | | | <page text="Eyes_dx9">Shaders/Eyes_dx9</page> | | | <page text="Fillrate">Shaders/Fillrate</page> | | | <page text="floatcombine">Shaders/floatcombine</page> | | | <page text="floatcombine_autoexpose">Shaders/floatcombine_autoexpose</page> | | | <page text="floattoscreen">Shaders/floattoscreen</page> | | | <page text="floattoscreen_vanilla">Shaders/floattoscreen_vanilla</page> | | | <page text="GooInGlass">Shaders/GooInGlass</page> | | | <page text="HDRCombineTo16Bit">Shaders/HDRCombineTo16Bit</page> | | | <page text="HDRSelectRange">Shaders/HDRSelectRange</page> | | | <page text="hsl_filmgrain_pass1">Shaders/hsl_filmgrain_pass1</page> | | | <page text="hsl_filmgrain_pass2">Shaders/hsl_filmgrain_pass2</page> | | | <page text="HSV">Shaders/HSV</page> | | | <page text="IntroScreenSpaceEffect">Shaders/IntroScreenSpaceEffect</page> | | | <page text="IntroScreenSpaceEffect_dx80">Shaders/IntroScreenSpaceEffect_dx80</page> | | | <page text="LightmappedGeneric">Shaders/LightmappedGeneric</page> | The shader used for world brushes. | | <page text="LightmappedGeneric_Decal">Shaders/LightmappedGeneric_Decal</page> | | | <page text="LightmappedGeneric_DX8">Shaders/LightmappedGeneric_DX8</page> | | | <page text="LightmappedReflective">Shaders/LightmappedReflective</page> | Used for water reflections? | | <page text="LightmappedReflective_DX90">Shaders/LightmappedReflective_DX90</page> | | | <page text="Modulate">Shaders/Modulate</page> | | | <page text="Modulate_DX8">Shaders/Modulate_DX8</page> | | | <page text="Modulate_DX9">Shaders/Modulate_DX9</page> | | | <page text="MorphAccumulate_DX9">Shaders/MorphAccumulate_DX9</page> | | | <page text="MorphWeight_DX9">Shaders/MorphWeight_DX9</page> | | | <page text="MotionBlur_dx9">Shaders/MotionBlur_dx9</page> | | | <page text="Occlusion_DX8">Shaders/Occlusion_DX8</page> | | | <page text="Occlusion_DX9">Shaders/Occlusion_DX9</page> | | | <page text="Overlay_Fit">Shaders/Overlay_Fit</page> | | | <page text="Portal_DX60">Shaders/Portal_DX60</page> | | | <page text="Portal_DX80">Shaders/Portal_DX80</page> | | | <page text="Portal_DX90">Shaders/Portal_DX90</page> | | | <page text="PortalRefract_dx8">Shaders/PortalRefract_dx8</page> | | | <page text="PortalRefract_dx9">Shaders/PortalRefract_dx9</page> | | | <page text="PortalStaticOverlay">Shaders/PortalStaticOverlay</page> | | | <page text="PortalStaticOverlay">Shaders/PortalStaticOverlay</page> | | | <page text="PortalStaticOverlay_DX60">Shaders/PortalStaticOverlay_DX60</page> | | | <page text="Predator_DX80">Shaders/Predator_DX80</page> | | | <page text="Refract">Shaders/Refract</page> | | | <page text="Refract_DX80">Shaders/Refract_DX80</page> | | | <page text="Refract_DX90">Shaders/Refract_DX90</page> | | | <page text="Sample4x4">Shaders/Sample4x4</page> | | | <page text="Sample4x4_Blend">Shaders/Sample4x4_Blend</page> | | | <page text="screenspace_general_dx8">Shaders/screenspace_general_dx8</page> | | | <page text="screenspace_general_dx9">Shaders/screenspace_general_dx9</page> | | | <page text="sfm_blurfilterx_shader">Shaders/sfm_blurfilterx_shader</page> | | | <page text="sfm_blurfiltery_shader">Shaders/sfm_blurfiltery_shader</page> | | | <page text="sfm_downsample_shader">Shaders/sfm_downsample_shader</page> | | | <page text="sfm_integercombine_shader">Shaders/sfm_integercombine_shader</page> | | | <page text="Shadow">Shaders/Shadow</page> | | | <page text="Shadow_DX8">Shaders/Shadow_DX8</page> | | | <page text="ShadowBuild_DX8">Shaders/ShadowBuild_DX8</page> | | | <page text="ShadowBuild_DX9">Shaders/ShadowBuild_DX9</page> | | | <page text="ShadowModel_DX8">Shaders/ShadowModel_DX8</page> | | | <page text="ShadowModel_DX9">Shaders/ShadowModel_DX9</page> | | | <page text="ShatteredGlass">Shaders/ShatteredGlass</page> | | | <page text="ShatteredGlass_DX8">Shaders/ShatteredGlass_DX8</page> | | | <page text="showz">Shaders/showz</page> | | | <page text="Sky_DX9">Shaders/Sky_DX9</page> | | | <page text="Sky_HDR_DX9">Shaders/Sky_HDR_DX9</page> | | | <page text="Sprite_DX8">Shaders/Sprite_DX8</page> | | | <page text="Sprite_DX9">Shaders/Sprite_DX9</page> | | | <page text="Spritecard">Shaders/Spritecard</page> | | | <page text="Spritecard_DX8">Shaders/Spritecard_DX8</page> | | | <page text="Teeth_DX6">Shaders/Teeth_DX6</page> | | | <page text="Teeth_DX8">Shaders/Teeth_DX8</page> | | | <page text="Teeth_DX9">Shaders/Teeth_DX9</page> | | | <page text="TreeLeaf">Shaders/TreeLeaf</page> | | | <page text="UnlitGeneric">Shaders/UnlitGeneric</page> | The shader used for GUI materials | | <page text="UnlitGeneric_DX8">Shaders/UnlitGeneric_DX8</page> | | | <page text="UnlitTwoTexture_DX8">Shaders/UnlitTwoTexture_DX8</page> | | | <page text="UnlitTwoTexture_DX9">Shaders/UnlitTwoTexture_DX9</page> | | | <page text="VertexLitGeneric">Shaders/VertexLitGeneric</page> | The shader used for models. | | <page text="VertexLitGeneric_DX8">Shaders/VertexLitGeneric_DX8</page> | | | <page text="VolumeClouds_dx9">Shaders/VolumeClouds_dx9</page> | | | <page text="VortWarp_dx8">Shaders/VortWarp_dx8</page> | | | <page text="VortWarp_DX9">Shaders/VortWarp_DX9</page> | | | <page text="Water_DX81">Shaders/Water_DX81</page> | | | <page text="Water_DX90">Shaders/Water_DX90</page> | | | <page text="WindowImposter_DX80">Shaders/WindowImposter_DX80</page> | | | <page text="WindowImposter_DX90">Shaders/WindowImposter_DX90</page> | | | <page text="Wireframe_DX8">Shaders/Wireframe_DX8</page> | | | <page text="Wireframe_DX9">Shaders/Wireframe_DX9</page> | | | <page text="WorldTwoTextureBlend">Shaders/WorldTwoTextureBlend</page> | | | <page text="WorldTwoTextureBlend_DX8">Shaders/WorldTwoTextureBlend_DX8</page> | | | <page text="WorldVertexAlpha_DX8">Shaders/WorldVertexAlpha_DX8</page> | | | <page text="WorldVertexTransition_DX8">Shaders/WorldVertexTransition_DX8</page> | | | <page text="WorldVertexTransition_DX9">Shaders/WorldVertexTransition_DX9</page> | | | <page text="WriteStencil_DX8">Shaders/WriteStencil_DX8</page> | | | <page text="WriteStencil_DX9">Shaders/WriteStencil_DX9</page> | | | <page text="WriteZ_DX8">Shaders/WriteZ_DX8</page> | | | <page text="WriteZ_DX9">Shaders/WriteZ_DX9</page> | | | <page text="YUV">Shaders/YUV</page> | |