Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Jul 12, 2024
1 parent 94bef95 commit 086b333
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sample/particles/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>webgpu-samples: particles</title>
<title>webgpu-samples: particles (HDR)</title>
<style>
:root {
color-scheme: light dark;
Expand Down
4 changes: 3 additions & 1 deletion sample/particles/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,15 @@ const simulationUBOBuffer = device.createBuffer({
});

const gui = new GUI();
gui.width = 325;
gui.add(simulationParams, 'simulate');
gui.add(simulationParams, 'deltaTime');
const hdrFolder = gui.addFolder('HDR Settings');
const hdrFolder = gui.addFolder('HDR settings');
hdrFolder
.add(simulationParams, 'toneMappingMode', ['standard', 'extended'])
.onChange(configureContext);
hdrFolder.add(simulationParams, 'brightnessFactor', 0, 4, 0.1);
hdrFolder.open();

const computePipeline = device.createComputePipeline({
layout: 'auto',
Expand Down
4 changes: 2 additions & 2 deletions sample/particles/meta.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
name: 'Particles',
name: 'Particles (HDR)',
description:
'This example demonstrates rendering of particles simulated with compute shaders.',
'This example demonstrates rendering of particles (using HDR capabilities when possible) simulated with compute shaders.',
filename: __DIRNAME__,
sources: [
{ path: 'main.ts' },
Expand Down

0 comments on commit 086b333

Please sign in to comment.