-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
KHR_texture_transform shouldn't emulate sampler repeat options #8076
Conversation
Thanks for the pull request @emackey!
Reviewers, don't forget to make sure that:
|
Missing CLA?? |
Not sure if a unit test is needed. This is strictly a removal of code, there's nothing new to test. However, I can demonstrate that the clamping and mirroring features work fine even with this code removed: The original test model shows repeating, which is the 3rd option and the default. |
@OmarShehata can you look into why @emackey's CLA is missing? @lilleyse is this good with you? |
Closes #8065 |
# Conflicts: # CHANGES.md
Just for visual reference, this is the original test model from #7916, which doesn't specify a sampler and thus ends up with the default The rotation reveals an area where the texture coordinates begin repeating. revealing block With the samplers set to Finally, the text model above with samplers set to The upshot of all this is, Cesium's implementation of the |
This all sounds correct to me, but I'm not qualified to merge. @lilleyse or @likangning93 any thoughts here? Please merge if you are good with this. |
Yup this looks good to me. I'll merge after the last merge commit passes CI. |
Thanks @emackey! |
The KHR_texture_transform extension was looking at texture repeat options and trying to factor them into the transformed texture. This is not needed, as WebGL will do the correct thing with sampler repeat options regardless of whether the coordinates have been transformed or not.
Fixes #7916
Alternative solution to #8065