Facepunch / garrysmod-issues

Garry's Mod issue tracker
144 stars 56 forks source link

light_environment and engine.LightStyle. Dark PhysObj problems #3492

Open Nak2 opened 6 years ago

Nak2 commented 6 years ago

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.

robotboy655 commented 4 years ago

render.RedownloadAllLightmaps got a second argument that solves this exact issue, but it can be slow.

ZH-Hristov commented 4 years ago

This still seems to happen, at least on my end, even if the new 2nd argument is true.