webvr js meetup initial commit

This commit is contained in:
Senad Uka
2017-03-11 15:22:17 +01:00
commit 3f640b55db
761 changed files with 264174 additions and 0 deletions

26
node_modules/three/examples/js/nodes/VarNode.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
/**
* @author sunag / http://www.sunag.com.br/
*/
THREE.VarNode = function( type ) {
THREE.GLNode.call( this, type );
};
THREE.VarNode.prototype = Object.create( THREE.GLNode.prototype );
THREE.VarNode.prototype.constructor = THREE.VarNode;
THREE.VarNode.prototype.getType = function( builder ) {
return builder.getTypeByFormat( this.type );
};
THREE.VarNode.prototype.generate = function( builder, output ) {
var varying = builder.material.getVar( this.uuid, this.type );
return builder.format( varying.name, this.getType( builder ), output );
};