Garry's Mod

Garry's Mod

Cascaded Shadow Mapping (CSM Shader)
94 Comments
Rasmordem 1 hour ago 
No matter what, I cannot make this look anything like the pictures here even with this addon and requirements only as the only enabled addons and on default GM_construct.

What am I supposed to do to make it look like the pictures? Because right now it just makes everything darker and have no shadows.
Galaxia224YT Nov 29 @ 6:01pm 
[Cascaded Shadow Mapping (CSM Shader)] lua/autorun/client/csm_ghsaders.lua:122: bad argument #2 to 'SetTexture' (ITexture expected, got no value)
1. SetTexture - [C]:-1
2. CreateDepthMaterial_D - lua/autorun/client/csm_ghsaders.lua:122
3. WriteEntity - lua/autorun/client/csm_ghsaders.lua:215
4. v - lua/autorun/client/csm_ghsaders.lua:246
5. unknown - lua/includes/modules/hook.lua:102
Snappy Nov 29 @ 3:42pm 
The Sun's light is very blue, is there a way to fix this?
SillySpaceCat Nov 28 @ 10:29am 
Evgeny, please fix it making muzzeflashes and lighting break the shadows.
eamonrspicer Nov 27 @ 4:51am 
@persondoesstuff me to
S. Pentious Nov 26 @ 1:40pm 
idk if it's one of my mods but this addon seems to make everything invinsible including my viewmodel and other npcs?
persondoesstuff Nov 25 @ 7:18pm 
Tried it an it worked for a week until the shadows started to flicker.. But if there's anyway how to fix it?
844box Nov 25 @ 5:37am 
Какие видеокарты наиболее совместимы с этим шейдером?
дабстеп мытищи Nov 23 @ 4:34pm 
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).
DishTheWasher Nov 23 @ 2:42am 
it's so buggy, shadows keep disappearing because they're out of range of the cascades. It is impossible for me to get it to look like in the thumbnail
дабстеп мытищи Nov 23 @ 2:32am 
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).
Milkyway22 Nov 22 @ 7:58pm 
i feel like one of the biggest problems with this mod is it just looks so bad indoors also how it updates with the shadow boxs on the ground or whatever is just jarring.
Ironlad95 Nov 22 @ 11:45am 
The sun is leaking.
Centilmen Nov 22 @ 8:53am 
sun is leaking
ISC Nov 21 @ 2:02pm 
the sun is leaking
male_07 Nov 21 @ 5:07am 
guys i have a proplem my sun like the sun is way to big like rlly big and it dose not matter what i do it dont get smaller

like i did sun editor sun overlay *nothing happend*
the the csm mod settings *aigain nothing*
and even the sky editor *aigain same result*
Neosun Nov 21 @ 12:48am 
Instant-crashing with this as well.
BART2038KILL Nov 20 @ 8:02am 
instant crash for me, even disabling all other addons and using all required ones.
Nebula Nebbinson Nov 19 @ 10:44pm 
Best settings for this?
MC_GamingYT Nov 19 @ 9:35pm 
I'm running only Niknak, CSM, Volumetric Lighting. but only the CSM is throwing these errors
MC_GamingYT Nov 19 @ 9:31pm 
[Cascaded Shadow Mapping (CSM Shader)] lua/autorun/client/csm_ghsaders.lua:249: attempt to call field 'IsProton' (a nil value)
1. InitCSM_GMOD - lua/autorun/client/csm_ghsaders.lua:249
2. v - lua/autorun/client/csm_ghsaders.lua:1961
3. Run - lua/includes/modules/hook.lua:102
4. InitCSMParams - lua/postprocess/csm_postprocess.lua:423
5. unknown - lua/postprocess/csm_postprocess.lua:658

any time I run this shader I get this in my console how do I fix this to run it?
Evgeny Akabenko  [author] Nov 19 @ 7:54pm 
The addon is unhidden because a cool depth buffer update was made.
Evgeny Akabenko  [author] Nov 19 @ 10:19am 
Addon hidden
Mailk0490 Nov 16 @ 4:26pm 
this doesnt work for me :steamsad:
giglietti05 Nov 16 @ 11:31am 
the sun is pissing on my map
Termin.x Nov 15 @ 1:50pm 
the tech is cool but this ♥♥♥♥ is kind of ass not gonna lie, just use normal csm guys!
chance Nov 14 @ 11:10am 
ts MIGHT just be the worst csm addon available
Arsentabis© Nov 14 @ 8:26am 
all is blue, how this pairs with your volumetric light?
Hornet & Lace Nov 14 @ 5:43am 
солнце слишком больше можно его как то уменьшить?
Manonstrider Nov 11 @ 12:55pm 
its all blue
Manonstrider Nov 11 @ 12:54pm 
help me
Manonstrider Nov 11 @ 1:41am 
evry thing is blue
eco Nov 10 @ 2:54am 
Can You Make This Work With The [VMAnip] Flashlight?
Yuki 4.8 Nov 9 @ 11:20am 
how do you even get this to work
Gaelot Nov 9 @ 8:40am 
the sun is leaking
Arctic Legends Nov 9 @ 7:33am 
It seems that, at least with TFA weapons, aiming bugs out the shaders. If anyone knows a fix it would be very appreciated
AToM1C Nov 9 @ 5:18am 
its kinda poly
hanmaboyM Nov 9 @ 12:59am 
btw i was using bms npcs (ZBASE)
hanmaboyM Nov 9 @ 12:58am 
this also flashed me with a code. Hmmm i wonder what that could be [Cascaded Shadow Mapping (CSM Shader)] lua/autorun/client/csm_ghsaders.lua:377: bad argument #4 to 'IsOBBIntersectingOBB' (Vector expected, got nil)
1. IsOBBIntersectingOBB - [C]:-1
2. DrawDynamicProps - lua/autorun/client/csm_ghsaders.lua:377
3. UpdateShadowMaps - lua/autorun/client/csm_ghsaders.lua:1598
4. unknown - lua/autorun/client/csm_ghsaders.lua:1765
5. Run - lua/includes/modules/hook.lua:313
6. unknown - lua/autorun/client/csm_ghsaders.lua:333
7. unknown - lua/includes/modules/hook.lua:313
𝓓𝓐𝓝𝓣Æ Nov 8 @ 6:31pm 
Hey Dev of this addon. I would like to Ask About a Bug. In the gamemode addon "Beatrun" upon entering the Context Menu By Holding C. Hovering over an Object showing its outline seems to make the map Brighter and making the Shadows Darker. Its a very annoying bug and it is not only triggered by Entering the Context Menu. I am Currently Trying to Re Create Dying Light in Gmod which is why i choose your Shadow Mod For Performance
Killcommand Nov 8 @ 2:03pm 
nik nak crashes or the mod does
ketaminekonnection69 Nov 8 @ 9:46am 
but when i spawn in an npc it stops until i delete the npc then it starts flashing when i move again
ketaminekonnection69 Nov 8 @ 9:45am 
whenever i move the whole screen flashes rapidly giving me seizures
Ryuji Nov 7 @ 3:43am 
@Evgeny Akabenko I tried out the "normals smooth". It helps a little but the polys are still noticeable.
pickled curdled foreskin Nov 6 @ 6:05pm 
does not work on 99% of my maps other than construct
Rasmordem Nov 6 @ 12:18pm 
I'm on the X64 branch on Windows
Rasmordem Nov 6 @ 12:11pm 
CSM does not work. It just does this and I have no idea how to fix it. All required addons are enabled. This is regular GM_Construct.

https://steamcommunity.com/sharedfiles/filedetails/?id=3600881987
Ozkii Nov 6 @ 8:44am 
[Cascaded Shadow Mapping (CSM Shader)] lua/autorun/client/csm_ghsaders.lua:1783: attempt to index a nil value
1. InitCSM_GMOD - lua/autorun/client/csm_ghsaders.lua:1783
2. v - lua/autorun/client/csm_ghsaders.lua:1887
3. Run - lua/includes/modules/hook.lua:102
4. InitCSMParams - lua/postprocess/csm_postprocess.lua:424
5. unknown - lua/postprocess/csm_postprocess.lua:665
Evgeny Akabenko  [author] Nov 6 @ 4:09am 
@Ryuji Gshader lib -> normals smooth
Ryuji Nov 6 @ 3:42am 
This looked promising, but it causes the polys on models to become very pronounced... is there a way to fix it?