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

added GPrim::get_displayColors and GPrim::get_displayColorsInterpolation #202

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

rdeioris
Copy link
Contributor

This patch adds two handy functions for getting the displayColors as array:

const std::vector<value::color3f> get_displayColors(
      double time = value::TimeCode::Default(),
      value::TimeSampleInterpolationType interp =
          value::TimeSampleInterpolationType::Linear) const;

  Interpolation get_displayColorsInterpolation() const;

This is mostly useful for animated colors

@syoyo syoyo merged commit 69b6e5a into lighttransport:dev Oct 27, 2024
14 checks passed
@syoyo
Copy link
Collaborator

syoyo commented Oct 27, 2024

👍 merged!

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