diff --git a/package.json b/package.json
index 3587e76..e0584a3 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
"rollup-plugin-vue": "^6.0.0-beta.10",
"sass": "^1.26.10",
"vite": "^1.0.0-rc.4",
- "vue": "^3.0.0-rc.11"
+ "vue": "^3.0.0-rc.10"
},
"main": "build/trois.js",
"module": "build/trois.module.js",
diff --git a/src/App.vue b/src/App.vue
index dfebf2a..ac72c4f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -41,8 +41,20 @@ export default {
li {
display: inline-block;
margin: 1em;
+ padding: 5px;
+ background: rgba(255, 255, 255, 0.5);
+ color: #000;
+ border-radius: 5px;;
cursor: pointer;
+ transition: background-color 0.4s;
+ &:hover {
+ background: rgba(255, 255, 255, 1);
+ }
}
}
+
+ canvas {
+ display: block;
+ }
}
diff --git a/src/components/Test2.vue b/src/components/Test2.vue
index 6c74dcc..37d9fa8 100644
--- a/src/components/Test2.vue
+++ b/src/components/Test2.vue
@@ -1,12 +1,15 @@
-
-
+
+
-
+
+
+
-
-
+
+
+
@@ -14,43 +17,71 @@
diff --git a/src/components/Test3.vue b/src/components/Test3.vue
index 5dbb122..4941f25 100644
--- a/src/components/Test3.vue
+++ b/src/components/Test3.vue
@@ -2,7 +2,7 @@
-
+
@@ -32,7 +32,7 @@ export default {
InstancedMesh, SphereGeometry,
},
mounted() {
- const renderer = this.$refs.renderer;
+ // const renderer = this.$refs.renderer;
const { randFloat: rnd, randFloatSpread: rndFS } = MathUtils;
const imesh = this.$refs.imesh.mesh;