mergin geos like goten and trunks

This commit is contained in:
Kevin Ngo
2018-10-05 00:26:52 -07:00
parent a8f930b686
commit c06f953208
6 changed files with 81 additions and 12 deletions

View File

@@ -11,6 +11,7 @@ AFRAME.registerComponent('materials', {
default: 'black',
oneOf: ['black', 'default', 'neon']
},
update: function () {
this.el.object3D.traverse(o => o.material = this.system[this.data]);
}