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

36
node_modules/three/examples/js/nodes/RawNode.js generated vendored Normal file
View File

@@ -0,0 +1,36 @@
/**
* @author sunag / http://www.sunag.com.br/
*/
THREE.RawNode = function( value ) {
THREE.GLNode.call( this, 'v4' );
this.value = value;
};
THREE.RawNode.prototype = Object.create( THREE.GLNode.prototype );
THREE.RawNode.prototype.constructor = THREE.RawNode;
THREE.GLNode.prototype.generate = function( builder ) {
var material = builder.material;
var data = this.value.parseAndBuildCode( builder, this.type );
var code = data.code + '\n';
if ( builder.shader == 'vertex' ) {
code += 'gl_Position = ' + data.result + ';';
} else {
code += 'gl_FragColor = ' + data.result + ';';
}
return code;
};