Skip to content

Commit

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

* disable tone mapping on postprocess quadmesh

* typo
  • Loading branch information
RenaudRohlinger committed Jan 13, 2024
1 parent 28a7aba commit caff384
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 caff384

Please sign in to comment.