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

Laser beams don't emit lights? #43

Closed
SkacikPL opened this issue Aug 2, 2019 · 2 comments
Closed

Laser beams don't emit lights? #43

SkacikPL opened this issue Aug 2, 2019 · 2 comments

Comments

@SkacikPL
Copy link

SkacikPL commented Aug 2, 2019

By default it seems that laser beams don't behave like light sources at all, only exception is the player railgun beam.

As a test i tried porting over this behavior to all laser beams and got something like this:
https://streamable.com/87v3g

It works and in general is better than not having them at all (at least IMO) though it obviously means running into 32 dynamic lights limit in nearly every instance.
To work around that i made the lights spawn only if they're within 300 units of the camera.

There may be a better way of achieving this or at least i would hope so as having them emit lights makes them less shallow looking.

@apanteleev
Copy link
Collaborator

Implemented in d8bfacb

Each laser beam is now converted to 6 triangular lights.
The effect and its brightness are controlled by the pt_beam_lights cvar.

Thanks for pointing this out!

@apanteleev
Copy link
Collaborator

Before:
image

After:
image

@SkacikPL SkacikPL closed this as completed Aug 9, 2019
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

2 participants