Skip to content

Commit

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

/**
* Class for representing a uniform.
* 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() );
*```
*
* @augments Node
*/
Expand All @@ -14,20 +21,20 @@ class NextNode extends Node {

}

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

super( 'void' );

this.isUniformNode = true;

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

}

setup( builder ) {

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

return this.nextNode;

Expand Down

0 comments on commit 9198247

Please sign in to comment.