We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2132516 commit 18c05a1Copy full SHA for 18c05a1
1 file changed
manual/content/getting-started.en.md
@@ -42,7 +42,6 @@ Postprocessing uses [RenderPipelines](../docs/classes/RenderPipeline.html) to re
42
43
```ts
44
import {
45
- ClearPass,
46
EffectPass,
47
GeometryPass,
48
RenderPipeline,
@@ -52,7 +51,6 @@ import {
52
51
const pipeline = new RenderPipeline(renderer);
53
54
pipeline.add(
55
- new ClearPass(),
56
new GeometryPass(scene, camera),
57
new EffectPass(new ToneMappingEffect())
58
);
@@ -63,9 +61,7 @@ function onResize(): void {
63
61
const height = container.clientHeight;
64
62
camera.aspect = width / height;
65
camera.updateProjectionMatrix();
66
-
67
- // The resolution must be set through the pipeline.
68
- pipeline.setSize(width, height);
+ renderer.setSize(width, height);
69
70
}
71
0 commit comments