Skip to content

Commit 03d1394

Browse files
committed
Update demos
1 parent 18c05a1 commit 03d1394

29 files changed

Lines changed: 30 additions & 121 deletions

manual/assets/js/src/demos/ascii.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
import {
1313
ASCIIEffect,
1414
ASCIITexture,
15-
ClearPass,
1615
EffectPass,
1716
GeometryPass,
1817
MixBlendFunction,
@@ -117,7 +116,6 @@ window.addEventListener("load", () => void load().then((assets) => {
117116

118117
const pipeline = new RenderPipeline(renderer);
119118
pipeline.add(
120-
new ClearPass(),
121119
new GeometryPass(scene, camera, { samples: 4 }),
122120
new EffectPass(effect, new ToneMappingEffect())
123121
);

manual/assets/js/src/demos/bloom.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010

1111
import {
1212
BloomEffect,
13-
ClearPass,
1413
EffectPass,
1514
GeometryPass,
1615
RenderPipeline,
@@ -103,7 +102,6 @@ window.addEventListener("load", () => void load().then((assets) => {
103102

104103
const pipeline = new RenderPipeline(renderer);
105104
pipeline.add(
106-
new ClearPass(),
107105
new GeometryPass(scene, camera, { samples: 4 }),
108106
effectPass
109107
);

manual/assets/js/src/demos/blur.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
} from "three";
1010

1111
import {
12-
ClearPass,
1312
EffectPass,
1413
GaussianBlurPass,
1514
GeometryPass,
@@ -110,7 +109,6 @@ window.addEventListener("load", () => void load().then((assets) => {
110109

111110
const pipeline = new RenderPipeline(renderer);
112111
pipeline.add(
113-
new ClearPass(),
114112
new GeometryPass(scene, camera, { samples: 4 }),
115113
mipmapBlurPass,
116114
gaussianBlurPass,

manual/assets/js/src/demos/brightness-contrast.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
} from "three";
1313

1414
import {
15-
ClearPass,
1615
GeometryPass,
1716
RenderPipeline
1817
} from "postprocessing";
@@ -86,15 +85,12 @@ window.addEventListener("load", () => void load().then((assets) => {
8685
// Post Processing
8786

8887
const pipeline = new RenderPipeline(renderer);
89-
pipeline.add(
90-
new ClearPass(),
91-
new GeometryPass(scene, camera)
92-
);
88+
pipeline.add(new GeometryPass(scene, camera));
9389

9490
/*
9591
const effect = new BrightnessContrastEffect();
9692
effect.blendMode.blendFunction = new MixBlendFunction();
97-
pipeline.addPass(new EffectPass(effect, new ToneMappingEffect()));
93+
pipeline.add(new EffectPass(effect, new ToneMappingEffect()));
9894
*/
9995

10096
// Settings

manual/assets/js/src/demos/chromatic-aberration.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
} from "three";
1212

1313
import {
14-
ClearPass,
1514
EffectPass,
1615
GeometryPass,
1716
RenderPipeline,
@@ -122,7 +121,6 @@ window.addEventListener("load", () => void load().then((assets) => {
122121

123122
const pipeline = new RenderPipeline(renderer);
124123
pipeline.add(
125-
new ClearPass(),
126124
new GeometryPass(scene, camera, { samples: 4 }),
127125
new EffectPass(new ToneMappingEffect())
128126
);

manual/assets/js/src/demos/color-depth.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111

1212
import {
1313
ColorDepthEffect,
14-
ClearPass,
1514
EffectPass,
1615
GeometryPass,
1716
MixBlendFunction,
@@ -103,7 +102,6 @@ window.addEventListener("load", () => void load().then((assets) => {
103102

104103
const pipeline = new RenderPipeline(renderer);
105104
pipeline.add(
106-
new ClearPass(),
107105
new GeometryPass(scene, camera, { samples: 4 }),
108106
new EffectPass(new ToneMappingEffect(), effect)
109107
);

manual/assets/js/src/demos/depth-of-field.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
} from "three";
1212

1313
import {
14-
ClearPass,
1514
GeometryPass,
1615
RenderPipeline
1716
} from "postprocessing";
@@ -113,7 +112,6 @@ window.addEventListener("load", () => void load().then((assets) => {
113112
const pipeline = new RenderPipeline(renderer);
114113
pipeline.autoRenderToScreen = false;
115114
pipeline.add(
116-
new ClearPass(),
117115
new GeometryPass(scene, camera, { samples: 4 })
118116
);
119117

@@ -137,8 +135,8 @@ window.addEventListener("load", () => void load().then((assets) => {
137135
// #endregion DEBUG
138136
139137
effect.blendMode.blendFunction = new MixBlendFunction();
140-
pipeline.addPass(new EffectPass(effect, new ToneMappingEffect()));
141-
pipeline.addPass(cocDebugPass);
138+
pipeline.add(new EffectPass(effect, new ToneMappingEffect()));
139+
pipeline.add(cocDebugPass);
142140
*/
143141

144142
// Settings

manual/assets/js/src/demos/depth-picking.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
} from "three";
1414

1515
import {
16-
ClearPass,
1716
DepthCopyMode,
1817
DepthPickingPass,
1918
EffectPass,
@@ -106,7 +105,6 @@ window.addEventListener("load", () => void load().then((assets) => {
106105

107106
const pipeline = new RenderPipeline(renderer);
108107
pipeline.add(
109-
new ClearPass(),
110108
new GeometryPass(scene, camera, { samples: 4 }),
111109
depthPickingPass,
112110
new EffectPass(new ToneMappingEffect())

manual/assets/js/src/demos/fxaa.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
} from "three";
1010

1111
import {
12-
ClearPass,
1312
EffectPass,
1413
FXAAEffect,
1514
GeometryPass,
@@ -91,7 +90,6 @@ window.addEventListener("load", () => void load().then((assets) => {
9190

9291
const pipeline = new RenderPipeline(renderer);
9392
pipeline.add(
94-
new ClearPass(),
9593
new GeometryPass(scene, camera),
9694
new EffectPass(effect, new ToneMappingEffect())
9795
);

manual/assets/js/src/demos/gbuffer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010

1111
import {
1212
BufferDebugPass,
13-
ClearPass,
1413
DebugTools,
1514
EffectPass,
1615
GBuffer,
@@ -103,7 +102,6 @@ window.addEventListener("load", () => void load().then((assets) => {
103102

104103
const pipeline = new RenderPipeline(renderer);
105104
pipeline.add(
106-
new ClearPass(),
107105
new GeometryPass(scene, camera, { samples: 4 }),
108106
new EffectPass(new ToneMappingEffect()),
109107
bufferDebugPass

0 commit comments

Comments
 (0)