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

Animate poly lights #137

Merged
merged 3 commits into from
Aug 23, 2021
Merged

Animate poly lights #137

merged 3 commits into from
Aug 23, 2021

Conversation

res2k
Copy link
Contributor

@res2k res2k commented Aug 23, 2021

Change the color of poly lights with multiple frames. For #134

Previously, for materials consisting of multiple frames, only the emissive data from the first frame would be used to set up the poly light. (The mitigation was to not create poly lights from animated materials.)
Now, poly light colors are updated as well when the "world" is animated.

Some properties are different from frame to frame but can't change dynamically; they're dealt with as such:

  • is_light property: As soon as a single frame has this property a poly light is created.
  • emissive area: This is the bounding area of all emissive areas of the frames.

Other properties (e.g. emissive_factor) still apply per frame.

@apanteleev apanteleev merged commit 6227941 into NVIDIA:master Aug 23, 2021
@res2k res2k deleted the dynamic-poly-lights branch August 24, 2021 06:29
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

Successfully merging this pull request may close these issues.

2 participants