Update shadow when scaling model #4003
Answered
by
elalish
danilokrulj
asked this question in
Q&A
-
Hi guys, I update the models size so that I have 3 sizes (S, M and L), the issue I have at the moment is that when I scale up the model the shadow doesn't update as expected. These are the lines of code I use when I resize the model. modelViewer[sceneSym]._model.scale.y = 1.15; modelViewer[sceneSym]._model.scale.z = 1.48387; modelViewer.updateFraming(); |
Beta Was this translation helpful? Give feedback.
Answered by
elalish
Dec 12, 2022
Replies: 1 comment 1 reply
-
Try our public API instead: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
danilokrulj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try our public API instead:
modelViewer.scale = "1.48 1.15 1.48";