-
Notifications
You must be signed in to change notification settings - Fork 791
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
Conversation
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
* Add fix for Wrapping exposed * Add example * Fix sampler updating * Added WrapMode comment
Fixed #4494