Open Nak2 opened 6 years ago
After changing the maplight with the entity light_environment or engine.LightStyle(). All non-static props got some mismatch darkness. (It looks too dark or bright.)
The light only match when the PhysObj isn't sleeping.
Video showing the problem: https://www.youtube.com/watch?v=VmcKeDk0870
P.S.: (Problem still persists after render.RedownloadAllLightmaps( true ).)
SERVER engine.LightStyle(0,"b")
engine.LightStyle(0,"b")
CLIENT render.RedownloadAllLightmaps( true )
render.RedownloadAllLightmaps( true )
Move the dark entities or call Entity:GetPhysicsObject():Wake() to see the color change.
Entity:GetPhysicsObject():Wake()
render.RedownloadAllLightmaps got a second argument that solves this exact issue, but it can be slow.
This still seems to happen, at least on my end, even if the new 2nd argument is true.
Details
After changing the maplight with the entity light_environment or engine.LightStyle(). All non-static props got some mismatch darkness. (It looks too dark or bright.)
The light only match when the PhysObj isn't sleeping.
Video showing the problem: https://www.youtube.com/watch?v=VmcKeDk0870
P.S.: (Problem still persists after render.RedownloadAllLightmaps( true ).)
Steps to reproduce
SERVER
engine.LightStyle(0,"b")
CLIENT
render.RedownloadAllLightmaps( true )
Move the dark entities or call
Entity:GetPhysicsObject():Wake()
to see the color change.