topical media & game development

talk show tell print

mobile-query-three-js-plugins-lights-tquery.ambientlight.js / js



  
Handle ambient light @class include THREE.AmbientLight. It inherit from {gray tQuery.Light} @borrows tQuery.Node#get as this.get @borrows tQuery.Node#each as this.each @borrows tQuery.Node#back as this.back
parameter: {THREE.AmbientLight} element an instance or array of instance

  
  tQuery.AmbientLight        = function(elements)
  {
          // call parent ctor
          tQuery.AmbientLight.parent.constructor.call(this, elements)
  
          // sanity check - all items MUST be THREE.Light
          this._lists.forEach(function(item){ console.assert(item instanceof THREE.AmbientLight); });
  };
  
  
inherit from tQuery.Node

  
  tQuery.inherit(tQuery.AmbientLight, tQuery.Light);
  
  
Make it pluginable

  
  tQuery.pluginsInstanceOn(tQuery.AmbientLight);
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.