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

Add fix for Wrapping exposed #4499

Merged
merged 4 commits into from
Oct 6, 2023
Merged

Add fix for Wrapping exposed #4499

merged 4 commits into from
Oct 6, 2023

Conversation

diegoteran
Copy link
Collaborator

Fixed #4494

Copy link
Collaborator

@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
Collaborator

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.

@@ -499,6 +499,12 @@ <h2 class="demo-title">Transform textures</h2>
<input type="range" min="0.5" max="1.5" value="1" step="0.01" id="scaleSlider">
<p>Offset</p>
<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
Collaborator

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
Collaborator

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 :/

Copy link
Collaborator

@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
6 checks passed
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.

None yet

2 participants