Garry's Mod

Garry's Mod

5,388 ratings
Real CSM - Modern Lighting & Realistic Dynamic Shadows
24
10
8
25
18
7
6
3
10
5
2
7
7
5
2
3
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Scenic, Realism
File Size
Posted
Updated
130.505 MB
Jun 4, 2022 @ 9:18pm
Jul 3, 2024 @ 1:39am
121 Change Notes ( view )

Subscribe to download
Real CSM - Modern Lighting & Realistic Dynamic Shadows

In 1 collection by Xenthio
CSM Verified Maps
71 items
Description
Maintaining mods and fixing them takes a lot of free time, please please please consider supporting me on patreon.
https://patreon.com/Xenthio
I absolutely refuse to make this mod paid, so help me keep it that way

Finally, a real cascading shadow implementation on the workshop. Either with automatic spawning or manual spawning
To use this spawn the CSM Editor located in "Entities > Editors" in the spawnmenu.
Quality settings (including soft shadows) are located in "Utilities > User > CSM" in the spawnmenu.

Quick warning before I start:
This will look the best on maps that have a named light_environment, but will still work on any other map. Try it on gm_construct! looks great!
Let me know of any other maps that work with it, i haven't had time to go through many. My favourite is https://steamcommunity.com/sharedfiles/filedetails/?id=2483210216
Join the discord for help and support, and also to see what else I might be working on: https://discord.gg/Y2M39gTNXD


This is the Fastest and best looking implementation on the workshop. This addon is also designed to take up 0 resources when not in use, meaning it's good for many use cases, no more constantly enabling and disabling addons!
Shout outs to Blueberry_pie for the original work I based this all off.

Make sure your shadow quality is set to high in your video settings

If you're a mapper here's your reminder to name the light_environments and put env_suns in your map, please, for not just this addon but many other addons too.
naming light environment by default will disable sun bounced lighting, In the latest version of gmod, you can use the new -bouncefromnamed compile option to make it bounce, for the older versions, I have a custom build of vrad that also does this. You can get it here! (May increase compile times a bit) https://xenthio.github.io/stuff/vrad-csm-v1.zip

Any map that doesn't work well with this isn't something I can fix, ask the original mapper if they can update their map with a named light_environment!

Wanna help? chuck a PR here! https://github.com/Xenthio/RealCSM

Submit bugs and feature requests here
https://github.com/Xenthio/RealCSM/issues

Tested on multiplayer, works.

F.A.Q.
Stormfox 2 support?: play with the cvars csm_stormfoxsupport, csm_stormfox_brightness_multiplier and csm_stormfox_coloured_sun

CSM automatically on map load?: csm_spawnalways 1

Shadows are blocky and staircasy!: Raise the shadow quality either in the utility tab in the spawnmenu or by changing r_flashlightdepthres

Theres no shadows! the map is bright!: Make sure your gmod settings shadow quality is set to high

I can't enable high shadow quality!: add "-force_vendor_id 0x10DE -force_device_id 0x1180" to your launch options

Is this Ray Tracing / RTX ?: No it isn't, just your regular old projected textures.

Can this be put into Source SDK? Yeah someones already doing it! check out this github https://github.com/celisej567/Fake-CSM-Source-2013

This isn't real csm! It's just projected textures: No it is real csm, there's proper cascades and stuff, I just use projected textures to achieve this.

It's too laggy! while this doesn't require too beefy of a computer to run you will have a hard time running it on something really old, this runs fine on my old 2012 macbook so i would say that's your minimum. Try enabling things like gmod_mcore_test 1 in console to improve your gmod framerate.

Tags cause steam workshop search sucks: CSM, Cascading Shadows, Shadows, Graphics Enhancement, Graphics Mods, Realistic Lighting, Better Lights, Better Shadows, Realistic Shadows, Dynamic Lighting, Dynamic Shadows, HD GMOD, Realistic Garry's Mod, Realistic Gmod, HD, Ultra realism, Scene building, Scene lighting, CSGO Shadows, CSGO Lighting, Counter Strike Lighting, Counter Strike shadows
Popular Discussions View All (47)
598
Dec 1 @ 2:03pm
PINNED: Problems and support
Xenthio
262
Dec 5 @ 7:17pm
PINNED: Questions
Xenthio
99
Sep 1 @ 2:56pm
PINNED: shadows either look really bad or are non-existent.
lolozerz
2,090 Comments
sailen_pli45 Dec 9 @ 6:33pm 
i've tested this mod on black mesa maps and its good, especially in surface tension
Xenthio  [author] Dec 7 @ 4:09pm 
I have no idea, I don't think I ever got presets fully working.
Orilas_ Dec 7 @ 3:34pm 
For some reason after reloading the map, the CSM settings panel doesn't update presets list, it only has Default preset, even though the preset file does exist in "GarrysMod\garrysmod\settings\presets\presetcsm"
Any solution for that?
SPRÏNTY Dec 3 @ 10:34pm 
Tysm :D
Xenthio  [author] Dec 3 @ 7:10pm 
You can raise it with -numshadowtextures XX where XX is a number, default is 8
SPRÏNTY Dec 3 @ 11:33am 
Nvm I fixed it, apparently I need to enable extra shadowmaps but the only reddit question post on how to do that has 0 replies and is from a year ago so I guess no penumbra shadows for me...
SPRÏNTY Dec 3 @ 11:13am 
Why does the penumbra setting break everything? x64 branch
дабстеп мытищи Nov 24 @ 3:24pm 
how to reset settings?
Sussyman100 Nov 24 @ 11:49am 
Player shadows dont work, its just a floating gun. Can you fix this please
ok soo uhh this makes my game fullbright