-
-
Notifications
You must be signed in to change notification settings - Fork 502
New function setElementLighting #3905
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
New function setElementLighting #3905
Conversation
|
Can u showcase this in action? |
I don't think there's much to show here. You can simply adjust the brightness of elements like peds, vehicles, or objects |
Ah I think a more appropriate name would be |
This function is the missing counterpart to |
|
I agree with the FileEX's arguments. |
|
Now that this feature has been merged for a few days, it would be great to have a wiki article documenting it. Also, in my opinion, a well-written wiki article should clearly explain how often the game computes lighting values for elements. This information is needed for script developers to decide whether to call it one-time or on every frame. The one-time approach is sufficient if the game doesn't frequently recalculate lighting values, but if the game recalculates lighting values every frame, calling it on each frame would be necessary for an override to have visible effects, which is also a reasonable design choice for the GTA rendering engine. |
The article will be published when the build is released; I always make sure of that. |
This PR adds the
setElementLightingfunction, which allows setting custom lighting for a specific element.