Garry's Mod

Garry's Mod

GShader Library
439 Comments
GabrielRS 17 hours ago 
I got an issue where it makes all of a characters polygons visible it looks very blocky
PrinceJaxonHellsing™ Nov 24 @ 12:25pm 
Hey, so I have a weird issue when this mod is enabled, where in third person, there's like, some weird duplicate stretched out version of my player model, and with the physgun equipped, my camera is inside my player models head some reason I don't know how to fix it. I also have a general issue where weapons I have, specifically many of the vanilla half life 2 weapons, I can see my arms and my camera is clipping through them, I know that's not an issue with this mod, but I was wondering if anyone has a solution for that too?
chicken nugget Nov 23 @ 8:43pm 
it crashes gmod when you touch water
Kona Nov 19 @ 6:38pm 
Thats what I'm thinking because i had those two as my favs and now their gone, wtf happened?
Jonathan Shoots'em Nov 19 @ 3:23pm 
So what happened to the CSM and Volumetric shaders? they got taken down
mj Nov 17 @ 10:37am 
this glitches a lot with third person is there any way to fix it?
Soul Forge Nov 17 @ 12:16am 
Valid! :gman:
Evgeny Akabenko  [author] Nov 16 @ 3:21am 
Evgeny Akabenko  [author] Nov 16 @ 3:21am 
I wrote to the MW base developer half a year ago and explained the problem. He didn't create a patch or a fix.

The MW base is just cool modern guns. But damn, let them be compatible with the depth buffer and shaders. It's not my concern, no matter how much I'd like it to be. If I were the developer of the weapons base, I would have made a fix.
It's almost 2026, and the MW base can't be used with a depth buffer to create shaders. Although it could be a nice combination.
I just often get messages saying there's a bug with this addon, or with another one. But it's not my bug. These aren't shader library bugs. All addons that don't work with GShader are the addons' problems, not the GShader library's.
Soul Forge Nov 16 @ 1:49am 
Can you fix Gshader for MW base please? world and viewmodels both freeze when switching to a different regular item that is NON-MW base like an HL2 weapon or something
this is cool and all but this makes my flashlight have a shadow for some reason
Rasmordem Nov 9 @ 12:11am 
@Evgeny Akabenko

Okay I did some troubleshooting and the issue I posted on your CSM addon I now believe is an issue with the GShader Library.

With debug mode on, the "_rt_WPDepth" and "_rt_NormalsTangents" windows will just stop updating and just freeze after a short while and never unfreeze. "_rt_Fog" seems to break also. Whenever this happens the shaders also break.

This was tested with only this, your CSM Shader, and your Volumetric lighting shader as the only addons enabled. It happens on regular branch and x86_64 branch. I tried lowering resolution and it still freezes.

Not sure why this is happening.
sweeteyes7 Nov 6 @ 6:13pm 
Okay I figured out that the thing causing the double body is Enhanced Camera 2, but the model is transparent for some reason even with EH2 off
OD_toast Nov 6 @ 1:32pm 
are you going to make a parallax snow shader
Lambda Nov 6 @ 10:50am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
sweeteyes7 Nov 6 @ 5:10am 
Is there a way to get rid of the weird duplicate body it makes when you look at yourself in third person
U+48 Nov 3 @ 1:35pm 
Crashes in Linux (Cinnamon)
PedroCalderoni Nov 1 @ 6:41pm 
Idk why, but flashlight attachments for guns from arc9, breaks whenever this addon is activated, and idk how to fix it
Zacharey Oct 31 @ 11:03am 
this addon seems to cause issues with wiremod e2 holos when loading, a heavy burst of holos would cause my game to crash
gm_Redlerman16 Oct 30 @ 12:00am 
found this error aswell, fix?

[GShader Library] lua/autorun/client/fixes_for_workshop_addons.lua:22: attempt to index a nil value
1. func - lua/autorun/client/fixes_for_workshop_addons.lua:22
2. unknown - lua/includes/modules/hook.lua:267
3. ClientsideModel - [C]:-1
4. unknown - lua/weapons/guitar_zero/cl_init.lua:32
Ozkii Oct 29 @ 12:45pm 
Ive also had the same issues with the depthBuffer and NikNaks errors, i feel like they shouldnt be required for the other shaders? Or atleast it should be shown as now required here

Very optional too, but now theres starting to be some shaders, maybe creating a collection to group them up and include other small dependencies sounds neat? But really i'd see just this Library and the other shaders you've made and or others have developed
Ozkii Oct 29 @ 12:41pm 
Im an Addon Dev and the current one im working on seems to trigger errors from your latest update (29th Oct)

Many other of my subscribed addons would also trigger the same kind or error, the provided message is one of them, but some would be longer, but i did note that every single one of them trigger an error at that famous line 22, you should really check it out, please and thanks !

[GShader Library] lua/autorun/client/fixes_for_workshop_addons.lua:22: attempt to index a nil value
1. v - lua/autorun/client/fixes_for_workshop_addons.lua:22
2. unknown - lua/includes/modules/hook.lua:102
Crimson Thunder Oct 29 @ 10:33am 
[GShader Library] lua/autorun/client/depthbuffer.lua:64: Module not found!
1. require - [C]:-1
2. unknown - lua/autorun/client/depthbuffer.lua:64
Crimson Thunder Oct 29 @ 10:32am 
[GShader Library] Couldn't include file 'includes\modules\niknaks.lua' - File not found or is empty (@lua/autorun/client/depthbuffer.lua (line 64))
1. unknown - lua/autorun/client/depthbuffer.lua:64
UNIT1 Oct 28 @ 6:41pm 
somehow messes up arc9 c_hands
well not in that way
If i have a MW base weapon with a arc9 weapon in my inventory the C_hands of the arc9 swep will be invisible
idk how this addon causes the problem
idksomething Oct 27 @ 7:34pm 
anyway to fix conflicts between this, vmanip, and/or arc9 RT Scopes?
Lusty Goblin Oct 27 @ 8:08am 
Damn, I played Gmod so much I want to make it look a bit more nicer to spice it up and this mod is amazing, but one of my gripes with games is being a floating camera and never being able to see my body when looking down, I use Enhanced Camera 2 mod but it makes a dupe of my body behind me, I looked for other body camera mods and though they work, they have problems themselves, so it's a pain now of the usual mod I use doesn't work with this one, the alternatives are good but their mod creators need to sort the problems in their mods.

I hate being like this.
Evgeny Akabenko  [author] Oct 23 @ 11:30am 
Fixed eye ang .z rotation bug
SuperSaskiemena Oct 22 @ 11:37am 
BRO MAKE IT SO IT DOESNT MESS UP VIEWMODEL-RELATED ADDONS PLEASE
BackInTheBlues Oct 22 @ 2:05am 
If this could work with vmanip/c_hands view models and the dynamic fog mod this would be a must have.
Juveima Oct 21 @ 12:29pm 
hello, i am getting this message
[GShader Library] lua/autorun/client/velocitybuffer.lua:7: attempt to index global 'shaderlib' (a nil value)
1. v - lua/autorun/client/velocitybuffer.lua:7
2. Run - lua/includes/modules/hook.lua:102
3. unknown - lua/autorun/client/proton_detect.lua:68
any idea how to fix it? thank you!
melody Oct 20 @ 8:32am 
where can we get the "contact shadows on weapon" shader it looks so goooodddddd
da ragin yajun Oct 19 @ 6:35pm 
Finally figured out the issue! Somehow, something was a-♥♥♥♥ with one of the few FNaF mods I had and it was directly conflicting with this mod. I'm sorry if I kinda wasted your time, Mr. Akabenko.
cd-r Oct 18 @ 6:33am 
someone needs to make a posterized shader with this mod
joby29 Oct 17 @ 11:36pm 
you have just changed the whole timeline of gmod
gilles671games Oct 17 @ 3:43am 
Мод сильно конфликтует с Gmod legs и оружками из MW
IGORIAN Oct 16 @ 11:01am 
Привет. Можешь исправить баг с c_hands и rigs при использовании стволов из MW Base?
Lusty Goblin Oct 16 @ 4:01am 
I'm using Enhanced camera 2, I know that is why I see the extra body, but the problem is I like seeing my body, it's a weird thing but whenever I play games the first thing I do is look down to see if it has a view model of the characters body, so I'm more wondering if there is a way to still see my body with this mod, but I have a feeling there isn't
da ragin yajun Oct 15 @ 2:08pm 
We have progress, though it's still giving me trouble.

It was able to grab the render target, but now its own global "shaderlib" is coming up nil. Once again, the affected files were fogmask.lua at line 16, hook.lua at line 313, and oddly enough, proton_detect.lua at line 68, which is funny as I use x64 GMod on Windows 10.

I'll keep checking for potential invisible conflicts, but if there is a possible fix on your end, keep letting me know. Thank you in advance, Mr. Akabenko!
Evgeny Akabenko  [author] Oct 15 @ 12:36pm 
@da ragin yajun
maybe fixed
da ragin yajun Oct 14 @ 2:25pm 
Hello Mr. Akabenko,

I'm currently having issues with GShader Library that prevent me from using it or any of its associated mods. Loading into a map greets me with this Lua error:

[GShader Library] lua/autorun/client/fogmask.lua:7: bad argument #8 to 'GetRenderTargetEx' (number expected, got nil)
1. GetRenderTargetEx - [C]:-1
2. unknown - lua/autorun/client/fogmask.lua:7
3. Run - lua/includes/modules/hook.lua:313
4. unknown - lua/autorun/client/proton_detect.lua:68

The GetRenderTargetEx value being nil is odd, and it seems to cause the viewport to break when using mods like the CSM shader someone else made using this library. I thought GWater 2 was to blame for this, as it seems to add additional graphics libraries to enable PhysX Flex water rendering. However, disabling and uninstalling that did nothing to fix it.

Any help would be greatly appreciated!
G. Possum Oct 14 @ 6:32am 
pretty much just breaks viewmodels by just copying the full model with practically no mods that majorly affect first person
cutmyheadoff Oct 8 @ 8:44pm 
Recently started causing some peculiar glitches with Vmanip. My viewmodel (c_hands with a weapon) start moving around the map when switching from an arc9/MWbase weapon to any other tool.
ste Oct 8 @ 2:31pm 
experiencing the same issue, except turning every setting off doesnt fix it for me
Designated Kitty 03-052 Oct 8 @ 1:55pm 
if I turn every setting off it goes back to normal. Weird.
Designated Kitty 03-052 Oct 8 @ 1:49pm 
This all the sudden started messing with vmanip. It just makes it disappear when looking straight horizontal but comes back if you look up or down. I don't know whats happening.
C2TY Oct 6 @ 3:03pm 
when using ARC9 weapon and aiming with a scope at the skybox the skybox wont show but the outside of the scope while aiming does show
da ragin yajun Oct 3 @ 7:09pm 
Check if you have Gmod Legs V3 installed, the way they simulated first-person legs was kinda janky and tended to break with certain mods. Uninstalling that fixed it for me, and the shader library wouldn't cause that sort of corruption.
Lusty Goblin Oct 3 @ 10:09am 
It's a shame, this mod makes me have some distorted copy of my body behind me for some reason, probably clashing with another mod but it's a pain.
Niko Sep 28 @ 5:31pm 
when I look at a npc or ground theres a weird flashlight thing