Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamicLight parameter minlight #3798

Open
Dragoteryx opened this issue Apr 3, 2019 · 0 comments
Open

DynamicLight parameter minlight #3798

Dragoteryx opened this issue Apr 3, 2019 · 0 comments

Comments

@Dragoteryx
Copy link

Dragoteryx commented Apr 3, 2019

Details

I'm currently working on a night vision goggles addon and I decided to use the minlight parameter only to discover that the results are inconsistent. What is considered the world by the DynamicLight (stuff that is lit when the nomodel parameter is set to true) is way darker than models (stuff that is lit up when noworld is set to true).

Steps to reproduce

Spawn a DynamicLight, for example, this:

local ply = LocalPlayer()
local dlight = DynamicLight(ply:EntIndex())
    dlight.pos = ply:GetEyePos()
    dlight.dieTime = CurTime() + 1
    dlight.decay = 100000
    dlight.size = 10000
    dlight.r = 1
    dlight.g = 1
    dlight.b = 1
    dlight.brightness = 0
    dlight.minlight = 1

In this screenshot, the room is supposed to be completely dark but the DynamicLight lights both the world and the models around it, however, notice how the models are way much brighter than the walls, even though they are lit by the same DynamicLight. As the value I used for minlight is 1, I suppose the models are brighter than they should be.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant