webvr js meetup initial commit
This commit is contained in:
29
node_modules/three/examples/js/nodes/inputs/FloatNode.js
generated
vendored
Normal file
29
node_modules/three/examples/js/nodes/inputs/FloatNode.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @author sunag / http://www.sunag.com.br/
|
||||
*/
|
||||
|
||||
THREE.FloatNode = function( value ) {
|
||||
|
||||
THREE.InputNode.call( this, 'fv1' );
|
||||
|
||||
this.value = [ value || 0 ];
|
||||
|
||||
};
|
||||
|
||||
THREE.FloatNode.prototype = Object.create( THREE.InputNode.prototype );
|
||||
THREE.FloatNode.prototype.constructor = THREE.FloatNode;
|
||||
|
||||
Object.defineProperties( THREE.FloatNode.prototype, {
|
||||
number: {
|
||||
get: function() {
|
||||
|
||||
return this.value[ 0 ];
|
||||
|
||||
},
|
||||
set: function( val ) {
|
||||
|
||||
this.value[ 0 ] = val;
|
||||
|
||||
}
|
||||
}
|
||||
} );
|
||||
Reference in New Issue
Block a user