fixes #10 - now smoke does not mix with lasers

This commit is contained in:
Diego F. Goberna
2018-09-19 01:10:11 +02:00
parent 54e5291ab7
commit 43ab0a2d75
3 changed files with 21 additions and 16 deletions

View File

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