Skip to content

Commit f2d69d1

Browse files
authored
PostProcessing: Harmonize node type. (#29823)
1 parent 665679a commit f2d69d1

14 files changed

+19
-15
lines changed

examples/jsm/tsl/display/AfterImageNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AfterImageNode extends TempNode {
1616

1717
constructor( textureNode, damp = 0.96 ) {
1818

19-
super( textureNode );
19+
super( 'vec4' );
2020

2121
this.textureNode = textureNode;
2222
this.textureNodeOld = texture();

examples/jsm/tsl/display/BloomNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class BloomNode extends TempNode {
1919

2020
constructor( inputNode, strength = 1, radius = 0, threshold = 0 ) {
2121

22-
super();
22+
super( 'vec4' );
2323

2424
this.inputNode = inputNode;
2525
this.strength = uniform( strength );

examples/jsm/tsl/display/DenoiseNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DenoiseNode extends TempNode {
1111

1212
constructor( textureNode, depthNode, normalNode, noiseNode, camera ) {
1313

14-
super();
14+
super( 'vec4' );
1515

1616
this.textureNode = textureNode;
1717
this.depthNode = depthNode;

examples/jsm/tsl/display/DepthOfFieldNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class DepthOfFieldNode extends TempNode {
1010

1111
constructor( textureNode, viewZNode, focusNode, apertureNode, maxblurNode ) {
1212

13-
super();
13+
super( 'vec4' );
1414

1515
this.textureNode = textureNode;
1616
this.viewZNode = viewZNode;

examples/jsm/tsl/display/FXAANode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class FXAANode extends TempNode {
1111

1212
constructor( textureNode ) {
1313

14-
super();
14+
super( 'vec4' );
1515

1616
this.textureNode = textureNode;
1717

examples/jsm/tsl/display/FilmNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class FilmNode extends TempNode {
1010

1111
constructor( inputNode, intensityNode = null, uvNode = null ) {
1212

13-
super();
13+
super( 'vec4' );
1414

1515
this.inputNode = inputNode;
1616
this.intensityNode = intensityNode;

examples/jsm/tsl/display/GTAONode.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ const _size = /*@__PURE__*/ new Vector2();
66

77
let _rendererState;
88

9+
/**
10+
* References:
11+
* https://www.activision.com/cdn/research/Practical_Real_Time_Strategies_for_Accurate_Indirect_Occlusion_NEW%20VERSION_COLOR.pdf
12+
*/
913
class GTAONode extends TempNode {
1014

1115
static get type() {
@@ -16,7 +20,7 @@ class GTAONode extends TempNode {
1620

1721
constructor( depthNode, normalNode, camera ) {
1822

19-
super();
23+
super( 'vec4' );
2024

2125
this.depthNode = depthNode;
2226
this.normalNode = normalNode;

examples/jsm/tsl/display/LensflareNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class LensflareNode extends TempNode {
2020

2121
constructor( textureNode, params = {} ) {
2222

23-
super();
23+
super( 'vec4' );
2424

2525
this.textureNode = textureNode;
2626

examples/jsm/tsl/display/Lut3DNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Lut3DNode extends TempNode {
1010

1111
constructor( inputNode, lutNode, size, intensityNode ) {
1212

13-
super();
13+
super( 'vec4' );
1414

1515
this.inputNode = inputNode;
1616
this.lutNode = lutNode;

examples/jsm/tsl/display/PixelationPassNode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PixelationNode extends TempNode {
1111

1212
constructor( textureNode, depthNode, normalNode, pixelSize, normalEdgeStrength, depthEdgeStrength ) {
1313

14-
super();
14+
super( 'vec4' );
1515

1616
// Input textures
1717

@@ -158,7 +158,7 @@ class PixelationPassNode extends PassNode {
158158

159159
constructor( scene, camera, pixelSize = 6, normalEdgeStrength = 0.3, depthEdgeStrength = 0.4 ) {
160160

161-
super( 'color', scene, camera, { minFilter: NearestFilter, magFilter: NearestFilter } );
161+
super( PassNode.COLOR, scene, camera, { minFilter: NearestFilter, magFilter: NearestFilter } );
162162

163163
this.pixelSize = pixelSize;
164164
this.normalEdgeStrength = normalEdgeStrength;

0 commit comments

Comments
 (0)