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

Specific dynamic lights for different parts #1064

Open
parar020100 opened this issue Mar 9, 2024 · 1 comment
Open

Specific dynamic lights for different parts #1064

parar020100 opened this issue Mar 9, 2024 · 1 comment

Comments

@parar020100
Copy link
Collaborator

parar020100 commented Mar 9, 2024

In lighting override, we reset lighting for each part and then add all dynamic lights as tables for rendering the part

What if we allowed to specify, which lights should be added to every specific part?

E.g.

T.Parts = {
   ...
   part_id = { pos = ..., ..., lights = {1, 2}, }
   ...
},

This could benefit the game in several ways

  1. optimisation - we could make the controls lit by only one of the lights (the main one) and reduce the lag

  2. this could allow to use more than 3 dlights per TARDIS
    for instance, have separate lights for corridors

@MattJeanes
Copy link
Owner

As mentioned in Discord, I think this could be really really useful for both performance and max light counts as you say. Definitely a good idea!

@parar020100 parar020100 added this to the Lighting update milestone Mar 11, 2024
@parar020100 parar020100 moved this from New to ToDo in GMod Doctor Who Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ToDo
Development

No branches or pull requests

2 participants