Skip to content

Commit 18c05a1

Browse files
committed
Update getting-started.en.md
1 parent 2132516 commit 18c05a1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

manual/content/getting-started.en.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ Postprocessing uses [RenderPipelines](../docs/classes/RenderPipeline.html) to re
4242

4343
```ts
4444
import {
45-
ClearPass,
4645
EffectPass,
4746
GeometryPass,
4847
RenderPipeline,
@@ -52,7 +51,6 @@ import {
5251
const pipeline = new RenderPipeline(renderer);
5352

5453
pipeline.add(
55-
new ClearPass(),
5654
new GeometryPass(scene, camera),
5755
new EffectPass(new ToneMappingEffect())
5856
);
@@ -63,9 +61,7 @@ function onResize(): void {
6361
const height = container.clientHeight;
6462
camera.aspect = width / height;
6563
camera.updateProjectionMatrix();
66-
67-
// The resolution must be set through the pipeline.
68-
pipeline.setSize(width, height);
64+
renderer.setSize(width, height);
6965

7066
}
7167

0 commit comments

Comments
 (0)