diff --git a/src/components/Test.vue b/src/components/Test.vue
index 7846ccb..c5266c7 100644
--- a/src/components/Test.vue
+++ b/src/components/Test.vue
@@ -1,14 +1,14 @@
-
+
-
-
+
+
-
+
-
-
+
+
@@ -28,5 +28,13 @@ export default {
Box, Sphere,
LambertMaterial, PhongMaterial,
},
+ mounted() {
+ const renderer = this.$refs.renderer;
+ const box = this.$refs.box.mesh;
+
+ renderer.onBeforeRender(() => {
+ box.rotation.x += 0.01;
+ });
+ },
};
diff --git a/src/core/PerspectiveCamera.js b/src/core/PerspectiveCamera.js
index 3c1fe64..afb2055 100644
--- a/src/core/PerspectiveCamera.js
+++ b/src/core/PerspectiveCamera.js
@@ -1,5 +1,4 @@
-import { PerspectiveCamera, Vector3 } from 'three';
-
+import { PerspectiveCamera } from 'three';
import { setFromProp } from '../tools.js';
export default {
@@ -10,10 +9,6 @@ export default {
default: 50,
},
position: Object,
- // position: {
- // type: Object,
- // default: new Vector3(),
- // },
},
created() {
const camera = new PerspectiveCamera(this.fov);
diff --git a/src/core/Renderer.vue b/src/core/Renderer.vue
index 8f119df..6f364db 100644
--- a/src/core/Renderer.vue
+++ b/src/core/Renderer.vue
@@ -7,30 +7,25 @@