Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the ability to increase the zoom via de
zoomScale
property. We were limiting the max zoom to a low value because it started clipping beyond a certain zoom level, but it was because of thecamera.minZ
value being too high, i set it to0.1
and now we can put the camera really close to the avatar without clipping.We need to be able to put the camera very close to the avatar face to generate the face snapshots for the profile-images research.
I didn't just increase the
MAX_ZOOM
value because that would change the way the zoom property behaves, and I didn't want to break anything in production. So instead I added thiszoomScale
which is 1 by default, but if necessary it can be used to make the zoom go beyond theMAX_ZOOM
level.