webvr js meetup initial commit
This commit is contained in:
32
node_modules/three/examples/js/nodes/postprocessing/NodePass.js
generated
vendored
Normal file
32
node_modules/three/examples/js/nodes/postprocessing/NodePass.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @author sunag / http://www.sunag.com.br/
|
||||
*/
|
||||
|
||||
THREE.NodePass = function() {
|
||||
|
||||
THREE.ShaderPass.call( this );
|
||||
|
||||
this.textureID = 'renderTexture';
|
||||
|
||||
this.fragment = new THREE.RawNode( new THREE.ScreenNode() );
|
||||
|
||||
this.node = new THREE.NodeMaterial();
|
||||
this.node.fragment = this.fragment;
|
||||
|
||||
this.build();
|
||||
|
||||
};
|
||||
|
||||
THREE.NodePass.prototype = Object.create( THREE.ShaderPass.prototype );
|
||||
THREE.NodePass.prototype.constructor = THREE.NodePass;
|
||||
|
||||
THREE.NodeMaterial.addShortcuts( THREE.NodePass.prototype, 'fragment', [ 'value' ] );
|
||||
|
||||
THREE.NodePass.prototype.build = function() {
|
||||
|
||||
this.node.build();
|
||||
|
||||
this.uniforms = this.node.uniforms;
|
||||
this.material = this.node;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user