Compare commits
3 Commits
3899993261
...
ff58cc16ff
Author | SHA1 | Date |
---|---|---|
|
ff58cc16ff | |
|
fc89e9daf9 | |
|
7bd3d2c7ac |
|
@ -60,12 +60,10 @@ function Model({ gltfModel, ...props }) {
|
|||
const maxSize = Math.max(sizeModel.x, sizeModel.y, sizeModel.z);
|
||||
const scale = Math.min(size.width, size.height) / maxSize;
|
||||
|
||||
|
||||
console.log("scaling factor is ", scale)
|
||||
// Apply the scaling factor to the model
|
||||
modelRef.current.scale.set(scale, scale, scale);
|
||||
|
||||
|
||||
const boxAfterScaling = new Box3().setFromObject(modelRef.current);
|
||||
const sizeModelAfterScaling = new Vector3();
|
||||
boxAfterScaling.getSize(sizeModelAfterScaling);
|
||||
|
|
|
@ -10,6 +10,11 @@ module.exports = {
|
|||
protocol: "https",
|
||||
hostname: "pbxt.replicate.delivery",
|
||||
},
|
||||
{
|
||||
protocol: "https",
|
||||
hostname: "replicate.delivery",
|
||||
pathname: '/pbxt/**',
|
||||
},
|
||||
],
|
||||
},
|
||||
// async headers() {
|
||||
|
@ -21,7 +26,6 @@ module.exports = {
|
|||
// key: 'Content-Security-Policy',
|
||||
// value: "default-src 'self'; img-src 'self' blob: https://replicate.com https://pbxt.replicate.delivery; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; worker-src 'self' blob:; connect-src 'self' blob:;"
|
||||
// }
|
||||
|
||||
// ],
|
||||
// },
|
||||
// ];
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue