Garry's Mod

Garry's Mod

688 ratings
Simple Custom Shaders
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
File Size
Posted
Updated
169.172 KB
Mar 7 @ 3:49pm
Mar 14 @ 8:52am
15 Change Notes ( view )

Subscribe to download
Simple Custom Shaders

Description
Simple Custom Shaders

A few simple custom post process shaders I added to the game for fun now that they can be uploaded to the workshop.
You can find all of them in Post Process > Effects.
All of them can be configured if you click on the icons.

Some of these shaders are CC0/MIT licensed shaders I found on ShaderToy and converted from GLSL to HLSL. All of the credits for the original shaders go to their respective authors.

As of now contains:
  • Vignette
  • Fisheye
  • Blur
  • Depth Grayscale
  • Depth Blur (This one is kinda bleh)
  • Depth Blur 2 (Better but limited in quality by Shader Model 2.0b)
  • Film Grain
  • Posterize
  • Chromatic Aberration
  • Radial Blur
  • VHS Shader №1 (Probably won't be the only one)
  • Video Glitch

Shader Damage Effects
An example addon to show how the shaders could be used by Lua developers:
https://steamcommunity.com/sharedfiles/filedetails/?id=3443685887

For developers
I intend to make some/most/all of these have their own respective draw functions, outside of the hooks, for use in other addons, so here's the documentation for the functions. I will update it as I add more or if I change the functions.

render.DrawMercVignette( float outerRingPos, float innerRingPos ) - Draw a vignette using the framebuffer texture render.DrawMercRadialBlur( float xScreenFrac, float yScreenFrac, float blurWidth ) - Draw radial blur on the screen render.DrawMercFisheye( float strength ) - Draw fisheye on the screen render.DrawMercFilmGrain( int blendmode, float speed, float intensity, float mean, float variance ) render.DrawMercChromaticAberration( float amount, bool centerfalloff ) - Draw chromatic aberration on the screen render.DrawMercVHS1( float xoffset, float yoffset ) - Draw a VHS effect with variable chromatic aberration render.DrawMercVideoglitch( float strength - Draw a Video Glitch effect render.DrawMercBlur( float strength ) - Draw a fullscreen blur render.DrawMercDepthBlur2( float depthstart, depthend, strength ) - Draw a depth blur effect, works decently as DOF

Support Links
[ko-fi.com]
Popular Discussions View All (3)
1
Aug 28 @ 4:38pm
At random, the shaders stop working and the screen goes black
SourceStick
1
Mar 13 @ 5:28am
You desperately need to be able to save presets.
exactly 1 knight
0
Aug 8 @ 5:04am
how do i make a magic mushshoom?
littleboygamer15
142 Comments
_WelCome_ Jun 20 @ 8:22am 
THANK YOU SO MUCH FOR THE POSTERIZE EFFECT!!! I love this addon!)
Lightness Jun 18 @ 6:54am 
finally i can make my game look like a yub thumbnail
Fredishere:) May 11 @ 8:54pm 
Why doesn't fish eye work with the VHS effect?
Tactical Meowscarada May 9 @ 2:37pm 
10/10 mod
Bebrochka Apr 22 @ 12:19am 
i love this shaders bro, i can make sick photos like this https://steamcommunity.com/sharedfiles/filedetails/?id=3446646605
bluecoolman280 Apr 13 @ 7:32pm 
if the VHS effect one is listed, then why isn't an image of it in any thumbnails?
Scanner Man Mar 30 @ 6:41pm 
so, shouldn't you already update the addon description?
80Hg  [author] Mar 28 @ 12:00am 
Yeah
Scanner Man Mar 27 @ 9:02pm 
Gmod has just been updated, now in theory this should be compatible without the need to use the 64 bit branch, right?
Well-Rounded Wildcard Mar 26 @ 1:56pm 
sick