Skip to content

Add fix for Wrapping exposed#4499

Merged
diegoteran merged 4 commits intomasterfrom
fixApi
Oct 6, 2023
Merged

Add fix for Wrapping exposed#4499
diegoteran merged 4 commits intomasterfrom
fixApi

Conversation

@diegoteran
Copy link
Collaborator

Fixed #4494

@diegoteran diegoteran requested a review from elalish October 5, 2023 21:42
Copy link
Contributor

@elalish elalish left a comment

Choose a reason for hiding this comment

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

Can you update your Transform Textures example to demonstrate this is working now? Just add a little drop-down for the wrap mode and apply same to both axes.

@@ -1,4 +1,4 @@
import {TextureFilter, Wrapping} from 'three';
import {TextureFilter} from 'three';
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to remove this too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Leaving this for a follow up PR.

<input type="range" min="0" max="1" value="0" step="0.01" id="offsetSlider">
<p>WrapMode</p>
<select id="wrapMode">
<option value="10497">Repeat</option>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you switch this to Wrap.Repeat etc? I want to ensure our enum is properly exported.

Copy link
Contributor

Choose a reason for hiding this comment

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

If it doesn't work, we probably have to re-export it from model-viewer.ts.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We realized at the office that making this work might take a bit more time of work, leaving it for another index.html cleanup :/

@diegoteran diegoteran requested a review from elalish October 6, 2023 00:18
Copy link
Contributor

@elalish elalish left a comment

Choose a reason for hiding this comment

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

Thanks

@diegoteran diegoteran merged commit dbd5ada into master Oct 6, 2023
JL-Vidinoti pushed a commit to vidinoti/model-viewer that referenced this pull request Apr 22, 2024
* Add fix for Wrapping exposed

* Add example

* Fix sampler updating

* Added WrapMode comment
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