Facepunch / garrysmod-requests

Feature requests for Garry's Mod
83 stars 24 forks source link

Lua way to toggle r_shadowfromanyworldlight for servers #2401

Closed Akabenko closed 3 weeks ago

Akabenko commented 3 weeks ago

I’ve seen reports that the dynamic light system doesn’t work without r_shadowfromanyworldlight enabled, so I support the idea of adding a way to toggle it serverside.

https://github.com/Facepunch/garrysmod-requests/issues/1458

robotboy655 commented 3 weeks ago

Duplicate of https://github.com/Facepunch/garrysmod-requests/issues/1458

robotboy655 commented 1 day ago

I have looked into this, and there was a bug with vrad.exe that made the option "Cast entity shadows" to not work in-game. This bug is fixed on x86-64 beta, so if you (re)compile your map on that beta, the feature will work as expected on all versions of the game.

Other versions of the game will also get the map compiler fix, but later.

I have also added extra info to that keyvalue on light entity about how to make it work properly.