initial commit

This commit is contained in:
Senad Uka
2017-11-19 15:16:07 +01:00
commit 0960216d5c
779 changed files with 266148 additions and 0 deletions

View File

@@ -0,0 +1,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 );
};