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

Rename Material component to AlbedoFactor #6841

Merged
merged 13 commits into from
Jul 10, 2024
Merged

Rename Material component to AlbedoFactor #6841

merged 13 commits into from
Jul 10, 2024

Conversation

emilk
Copy link
Member

@emilk emilk commented Jul 10, 2024

What

⚠️ This is a breaking change!

This renames the Material component to AlbedoFactor, which now simply wraps a datatypes.Rgba32.

Consequently, the field mesh_material in Mesh3D is now named albedo_factor

When constructing a Mesh3D:

  • C++ & Rust: .with_mesh_material(Material::from_albedo_factor(color)) -> with_albedo_factor(color)
  • Python: mesh_material=rr.Material(albedo_factor=color) -> albedo_factor=color

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!
  • I have run the raw_mesh examples
  • I have asked for a final @rerun-bot full-check and checked the results

To run all checks from main, comment on the PR with @rerun-bot full-check.

@emilk emilk added include in changelog 🪵 Log & send APIs Affects the user-facing API for all languages labels Jul 10, 2024
@emilk emilk changed the title Rename Material to AlbedoFactor Rename Material component to AlbedoFactor Jul 10, 2024
Copy link

github-actions bot commented Jul 10, 2024

Deployed docs

Commit Link
65960a1 https://landing-bq5fmldlx-rerun.vercel.app/docs

@emilk emilk force-pushed the emilk/albedo-factor branch from 42d2673 to 23a40fb Compare July 10, 2024 08:02
@emilk emilk force-pushed the emilk/albedo-factor branch from 23a40fb to 58d4d78 Compare July 10, 2024 08:17
@emilk emilk marked this pull request as ready for review July 10, 2024 08:34
@emilk emilk changed the title Rename Material component to AlbedoFactor Rename mesh_materia: Material component to albedo_factor: AlbedoFactor Jul 10, 2024
@emilk emilk changed the title Rename mesh_materia: Material component to albedo_factor: AlbedoFactor Rename Material component to AlbedoFactor Jul 10, 2024
@emilk
Copy link
Member Author

emilk commented Jul 10, 2024

@rerun-bot full-check

Copy link

@Wumpf Wumpf self-requested a review July 10, 2024 08:50
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

CHANGELOG.md Outdated Show resolved Hide resolved
crates/viewer/re_edit_ui/src/albedo_factor.rs Outdated Show resolved Hide resolved
@emilk
Copy link
Member Author

emilk commented Jul 10, 2024

@rerun-bot full-check

Copy link

Started a full build: https://github.com/rerun-io/rerun/actions/runs/9872003157

@emilk emilk merged commit 29c9551 into main Jul 10, 2024
40 of 41 checks passed
@emilk emilk deleted the emilk/albedo-factor branch July 10, 2024 10:36
@emilk emilk mentioned this pull request Aug 15, 2024
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog 🪵 Log & send APIs Affects the user-facing API for all languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change Material into AlbedoFactor and remove inner nullability
2 participants