MattJeanes / TARDIS

Time and Relative Dimension in Space, for Garry's Mod
MIT License
63 stars 27 forks source link

Specific dynamic lights for different parts #1064

Open parar020100 opened 6 months ago

parar020100 commented 6 months ago

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 commented 6 months ago

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!