init (data) {
    log('init', data)
    this.__cnv = document.createElement('canvas')
    this.__cnv.width = 2
    this.__cnv.height = 2
    this.__ctx = this.__cnv.getContext('2d')
    this.__texture = new THREE.Texture(this.__cnv)
    this.__reset()
    this.material = new THREE.MeshBasicMaterial({ map: this.__texture })
    this.el.sceneEl.addBehavior(this)
    return this.material
  }
/**
   * Initialize material. Called once.
   * @protected
   */
Initialize material. Called once.
@protected
Initialize material . Called once . @protected
init (data) {
    log('init', data)
    this.__cnv = document.createElement('canvas')
    this.__cnv.width = 2
    this.__cnv.height = 2
    this.__ctx = this.__cnv.getContext('2d')
    this.__texture = new THREE.Texture(this.__cnv)
    this.__reset()
    this.material = new THREE.MeshBasicMaterial({ map: this.__texture })
    this.el.sceneEl.addBehavior(this)
    return this.material
  }
init ( data ) { log ( 'init' , data ) this . __cnv = document . createElement ( 'canvas' ) this . __cnv . width = 2 this . __cnv . height = 2 this . __ctx = this . __cnv . getContext ( '2d' ) this . __texture = new THREE . Texture ( this . __cnv ) this . __reset ( ) this . material = new THREE . MeshBasicMaterial ( { map : this . __texture } ) this . el . sceneEl . addBehavior ( this ) return this . material }
Initialize material.
Initialize material .