12345678910111213141516 |
- /**
- * @author sunag / http://www.sunag.com.br/
- */
- THREE.ColorNode = function( color ) {
- THREE.InputNode.call( this, 'c' );
- 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' ] );
|