webvr js meetup initial commit
This commit is contained in:
22
node_modules/three/examples/js/nodes/utils/LuminanceNode.js
generated
vendored
Normal file
22
node_modules/three/examples/js/nodes/utils/LuminanceNode.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @author sunag / http://www.sunag.com.br/
|
||||
*/
|
||||
|
||||
THREE.LuminanceNode = function( rgb ) {
|
||||
|
||||
THREE.TempNode.call( this, 'fv1' );
|
||||
|
||||
this.rgb = rgb;
|
||||
|
||||
};
|
||||
|
||||
THREE.LuminanceNode.prototype = Object.create( THREE.TempNode.prototype );
|
||||
THREE.LuminanceNode.prototype.constructor = THREE.LuminanceNode;
|
||||
|
||||
THREE.LuminanceNode.prototype.generate = function( builder, output ) {
|
||||
|
||||
builder.include( 'luminance_rgb' );
|
||||
|
||||
return builder.format( 'luminance_rgb(' + this.rgb.build( builder, 'v3' ) + ')', this.getType( builder ), output );
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user