displaying a cube with vue-threejs, WAOU!
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<mesh name="Cube" :position="position">
|
||||
<geometry type="Box" :args="[size, size, size]" />
|
||||
<material type="MeshBasic" :color="color" />
|
||||
</mesh>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import { Object3D } from '@'
|
||||
export default {
|
||||
name: 'Cube',
|
||||
// mixins: [Object3D],
|
||||
props: { size: Number, texture: String, position: Object, color: Number }
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user