/** * @author sunag / http://www.sunag.com.br/ */ THREE.ColorNode = function( color ) { THREE.InputNode.call( this, 'c', { share: false } ); this.value = new THREE.Color( color || 0 ); }; THREE.ColorNode.prototype = Object.create( THREE.InputNode.prototype ); THREE.ColorNode.prototype.constructor = THREE.ColorNode; THREE.NodeMaterial.addShortcuts( THREE.ColorNode.prototype, 'value', [ 'r', 'g', 'b' ] );