Skip to content

Commit

Permalink
Update gbuffer.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Feb 9, 2024
1 parent d272909 commit 8cdbc19
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manual/assets/js/src/demos/gbuffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,19 @@ window.addEventListener("load", () => void load().then((assets) => {
samples: 4
}));

pipeline.addPass(new EffectPass(new ToneMappingEffect()));

const bufferDebugPass = new BufferDebugPass(
new Set([
GBuffer.COLOR,
GBuffer.DEPTH,
GBuffer.NORMAL,
GBuffer.ROUGHNESS,
GBuffer.METALNESS
GBuffer.ORM,
GBuffer.EMISSION
])
);

pipeline.addPass(new EffectPass(new ToneMappingEffect()));
bufferDebugPass.columns = 3;
pipeline.addPass(bufferDebugPass);

// Settings
Expand Down

0 comments on commit 8cdbc19

Please sign in to comment.