/usr/share/javascript/three/examples/js/nodes/utils/NoiseNode.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.NoiseNode = function( coord ) {
THREE.TempNode.call( this, 'fv1' );
this.coord = coord;
};
THREE.NoiseNode.prototype = Object.create( THREE.TempNode.prototype );
THREE.NoiseNode.prototype.constructor = THREE.NoiseNode;
THREE.NoiseNode.prototype.generate = function( builder, output ) {
builder.include( 'snoise' );
return builder.format( 'snoise(' + this.coord.build( builder, 'v2' ) + ')', this.getType( builder ), output );
};
|