Skip to content

Commit

Permalink
Revert "cleanup"
Browse files Browse the repository at this point in the history
This reverts commit 9198247.
  • Loading branch information
sunag committed Dec 11, 2024
1 parent 9198247 commit 66bbdeb
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/nodes/core/NextNode.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import Node from './Node.js';
import { addMethodChaining, nodeProxy } from '../tsl/TSLCore.js';
import { addMethodChaining, nodeObject, nodeProxy } from '../tsl/TSLCore.js';

/**
* Adds the Node to the event list but does not generate the code, useful for PostProcessing.
* It will execute the events of the first node and then the events of the next node.
*
* ```js
* const depthPassNode = depthPass( scene, camera );
*
* postProcessing.outputNode = depthPassNode.next( myFunction() );
*```
* Class for representing a uniform.
*
* @augments Node
*/
Expand All @@ -21,20 +14,20 @@ class NextNode extends Node {

}

constructor( firstNode, nextNode ) {
constructor( parentNode, nextNode ) {

super( 'void' );

this.isUniformNode = true;

this.firstNode = firstNode;
this.parentNode = parentNode;
this.nextNode = nextNode;

}

setup( builder ) {

this.firstNode.build( builder );
this.parentNode.build( builder );

return this.nextNode;

Expand Down

0 comments on commit 66bbdeb

Please sign in to comment.