asumagic / kag-staging

Issue tracker for the KAG staging build
6 stars 0 forks source link

New function to replace getColorLight or rework it. #124

Open Pirate-Rob opened 2 years ago

Pirate-Rob commented 2 years ago

For mods which interact with light levels, a replacement for getColorLight() or a way to fix it would be nice. Checking the composited lightmap for the colour/intensity at a specific location was discussed.

Another thing to note is that it'd likely only work on the client, so possible have a name similar to client_getLightingAtPos or something similar.

If that's not possible, would otherwise be nice if all light blobs could be stored in a cache/list, so if you try to check the lighting at a position, it works it out using funky math to approximate what the lighting would be based on the initial lighting and distances to light blobs.