Dynamic shadows in Mapbase (env_global_light)

Channel:
Subscribers:
43
Published on ● Video Link: https://www.youtube.com/watch?v=sY6QpzCg6q0



Duration: 4:16
10,011 views
254


well, it does not work well, because this entity is like env_projectedtexture following a player. it has some bugs: flickering, clipping through walls and low-res. but if you want to try it, here are commands (sv_cheats 1 ofc):

ent_create env_global_light targetname test angles "35 165 0" brightnessscale 1.01 fov 0.0000000001 lightcolor "244 234 194 900" nearz "99999" northoffset 0 texturename effects/flashlight001 orthosize 1024 enableshadows 1

cl_globallight_depthbias_shadowmap 0.0000000000001
cl_globallight_shadowfiltersize 2
cl_globallight_slopescaledepthbias_shadowmap 8

will look ok on map d1_trainstation maps, on other maps change angles and play with light color and brightness scale