Garry's Mod

Garry's Mod

730 个评价
Simple Custom Shaders
2
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
文件大小
发表于
更新日期
169.172 KB
3 月 7 日 下午 3:49
3 月 14 日 上午 8:52
15 项改动说明 ( 查看 )

订阅以下载
Simple Custom Shaders

描述
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://psteamcommunity.yuanyoumao.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
[revolut.me]
热门讨论 查看全部(3)
3
10 月 6 日 上午 9:44
At random, the shaders stop working and the screen goes black
SourceStick
1
3 月 13 日 上午 5:28
You desperately need to be able to save presets.
exactly 1 knight
0
8 月 8 日 上午 5:04
how do i make a magic mushshoom?
littleboygamer15
145 条留言
screwdriver lobotomy 10 月 10 日 下午 12:22 
doesn't turn on automatically if I turned them on and joined a new map.
8eHg  [作者] 10 月 6 日 上午 3:45 
@Fredishere:) It should
_WelCome_ 6 月 20 日 上午 8:22 
THANK YOU SO MUCH FOR THE POSTERIZE EFFECT!!! I love this addon!)
The British Idiot 6 月 18 日 上午 6:54 
finally i can make my game look like a yub thumbnail
Fredishere:) 5 月 11 日 下午 8:54 
Why doesn't fish eye work with the VHS effect?
Niko 5 月 9 日 下午 2:37 
10/10 mod
Bebrochka 4 月 22 日 上午 12:19 
i love this shaders bro, i can make sick photos like this https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3446646605
bluecoolman280 4 月 13 日 下午 7:32 
if the VHS effect one is listed, then why isn't an image of it in any thumbnails?
Scanner Man 3 月 30 日 下午 6:41 
so, shouldn't you already update the addon description?