three
Version:
JavaScript 3D library
37 lines (21 loc) • 445 B
JavaScript
/**
* @author sunag / http://www.sunag.com.br/
*/
function NodeUniform( params ) {
params = params || {};
this.name = params.name;
this.type = params.type;
this.node = params.node;
this.needsUpdate = params.needsUpdate;
}
Object.defineProperties( NodeUniform.prototype, {
value: {
get: function () {
return this.node.value;
},
set: function ( val ) {
this.node.value = val;
}
}
} );
export { NodeUniform };