New model

This commit is contained in:
2022-02-06 17:08:26 +03:00
parent 8590f61ba1
commit e0016c9a04
4 changed files with 13838 additions and 72243 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{ {
"name": "vue-three-d-mockup", "name": "vue-three-d-mockup",
"version": "0.1.4", "version": "0.2.0",
"description": "📱 A 3D phone mockup component to showcase your apps", "description": "📱 A 3D phone mockup component to showcase your apps",
"author": "Anatoly Kopyl <akopyl@radner.ru>", "author": "Anatoly Kopyl <akopyl@radner.ru>",
"keywords": ["vue", "mockup-generator", "threejs", "design", "mockup"], "keywords": ["vue", "mockup-generator", "threejs", "design", "mockup"],

View File

@@ -142,6 +142,9 @@ export default {
child.material = new THREE.MeshLambertMaterial({ color: props.phoneClr }); child.material = new THREE.MeshLambertMaterial({ color: props.phoneClr });
child.geometry.center(); child.geometry.center();
const mesh = new THREE.Mesh(child.geometry, child.material); const mesh = new THREE.Mesh(child.geometry, child.material);
const scale = 8.6;
mesh.rotateX(Math.PI / 2);
mesh.scale.set(-scale, scale, scale);
bodyGroup.add(mesh); bodyGroup.add(mesh);
} }
}); });

File diff suppressed because it is too large Load Diff