Skip to content

Commit

Permalink
Examples: Revert OutputPass in failing examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Jun 13, 2023
1 parent 008701f commit 3c5bf85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions examples/webgl_postprocessing_3dlut.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';
import { EffectComposer } from 'three/addons/postprocessing/EffectComposer.js';
import { RenderPass } from 'three/addons/postprocessing/RenderPass.js';
import { ShaderPass } from 'three/addons/postprocessing/ShaderPass.js';
import { LUTPass } from 'three/addons/postprocessing/LUTPass.js';
import { LUTCubeLoader } from 'three/addons/loaders/LUTCubeLoader.js';
import { LUT3dlLoader } from 'three/addons/loaders/LUT3dlLoader.js';
import { OutputPass } from 'three/addons/postprocessing/OutputPass.js';
import { GammaCorrectionShader } from 'three/addons/shaders/GammaCorrectionShader.js';
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

const params = {
Expand Down Expand Up @@ -138,7 +139,7 @@
composer.setPixelRatio( window.devicePixelRatio );
composer.setSize( window.innerWidth, window.innerHeight );
composer.addPass( new RenderPass( scene, camera ) );
composer.addPass( new OutputPass() );
composer.addPass( new ShaderPass( GammaCorrectionShader ) );

lutPass = new LUTPass();
composer.addPass( lutPass );
Expand Down
8 changes: 4 additions & 4 deletions examples/webgl_postprocessing_advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
import { VerticalBlurShader } from 'three/addons/shaders/VerticalBlurShader.js';
import { SepiaShader } from 'three/addons/shaders/SepiaShader.js';
import { VignetteShader } from 'three/addons/shaders/VignetteShader.js';
import { OutputPass } from 'three/addons/postprocessing/OutputPass.js';
import { GammaCorrectionShader } from 'three/addons/shaders/GammaCorrectionShader.js';

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

Expand Down Expand Up @@ -151,7 +151,7 @@
const effectBleach = new ShaderPass( shaderBleach );
const effectSepia = new ShaderPass( shaderSepia );
const effectVignette = new ShaderPass( shaderVignette );
const outputPass = new OutputPass();
const gammaCorrection = new ShaderPass( GammaCorrectionShader );

effectBleach.uniforms[ 'opacity' ].value = 0.95;

Expand Down Expand Up @@ -215,7 +215,7 @@
composer1 = new EffectComposer( renderer, new THREE.WebGLRenderTarget( rtWidth, rtHeight, rtParameters ) );

composer1.addPass( renderScene );
composer1.addPass( outputPass );
composer1.addPass( gammaCorrection );
composer1.addPass( effectFilmBW );
composer1.addPass( effectVignette );

Expand All @@ -224,7 +224,7 @@
composer2 = new EffectComposer( renderer, new THREE.WebGLRenderTarget( rtWidth, rtHeight, rtParameters ) );

composer2.addPass( renderScene );
composer2.addPass( outputPass );
composer2.addPass( gammaCorrection );
composer2.addPass( effectDotScreen );
composer2.addPass( renderMask );
composer2.addPass( effectColorify1 );
Expand Down

0 comments on commit 3c5bf85

Please sign in to comment.