Skip to content

Add pbr iridescence API#4348

Merged
diegoteran merged 3 commits into
masterfrom
nxt
Jul 11, 2023
Merged

Add pbr iridescence API#4348
diegoteran merged 3 commits into
masterfrom
nxt

Conversation

@diegoteran

Copy link
Copy Markdown
Collaborator

Follows threejs implementation.

elalish
elalish previously approved these changes Jul 8, 2023

@elalish elalish left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

return this[$backingThreeMaterial].iridescenceThicknessRange[1];
}

get iridescenceThicknessTexture(): TextureInfo {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I just noticed this function signature doesn't match the API: one returns TextureInfo, while the other returns TextureInfo|null. I noticed because of the ! below. This is probably true of the rest as well - let's make sure we know which is correct and then make them match.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Have these been added to the pbr map with createTextureInfo? Maybe we need something more type-safe than a map...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yes, these are all added at $initialize

@diegoteran diegoteran requested a review from elalish July 11, 2023 20:42

@elalish elalish left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! LGTM.

@diegoteran diegoteran merged commit e020b1b into master Jul 11, 2023
@diegoteran diegoteran deleted the nxt branch July 11, 2023 21:16
JL-Vidinoti pushed a commit to vidinoti/model-viewer that referenced this pull request Apr 22, 2024
* Add pbr iridescence API

* Make pbr next properties api consistent for TextureInfo

* Add Anisotropy
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