Skip to content

Commit

Permalink
WebGPURenderer: PostProcessing fix tone mapping on display nodes (mrd…
Browse files Browse the repository at this point in the history
…oob#27557)

* disable tone mapping on postprocess quadmesh

* typo
  • Loading branch information
RenaudRohlinger authored and AdaRoseCannon committed Jan 15, 2024
1 parent ace9f85 commit d335187
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/jsm/nodes/display/AfterImageNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class AfterImageNode extends TempNode {
//

const materialComposed = this._materialComposed || ( this._materialComposed = builder.createNodeMaterial( 'MeshBasicNodeMaterial' ) );
materialComposed.toneMapped = false;
materialComposed.fragmentNode = afterImg();

quadMeshComp.material = materialComposed;
Expand Down
1 change: 1 addition & 0 deletions examples/jsm/nodes/display/GaussianBlurNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ class GaussianBlurNode extends TempNode {
//

const material = this._material || ( this._material = builder.createNodeMaterial( 'MeshBasicNodeMaterial' ) );
material.toneMapped = false;
material.fragmentNode = blur();

//
Expand Down

0 comments on commit d335187

Please sign in to comment.