/usr/share/javascript/three/examples/js/nodes/utils/LuminanceNode.js is in libjs-three 80+dfsg2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 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 );
};
|