Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
netpro2k committed Oct 12, 2022
1 parent 80aef4e commit d822fc7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ export function createEffectsComposer(
store: Store
) {
const composer = new EffectComposer(renderer, {
frameBufferType: HalfFloatType,
multisampling: 4
frameBufferType: HalfFloatType
});
composer.autoRenderToScreen = false;
composer.setSize(canvas.width, canvas.height, false);
composer.outputBuffer.depthBuffer = composer.inputBuffer.depthBuffer;

const renderScenePass = new RenderPass(scene, camera);
renderScenePass.clear = true;
Expand Down Expand Up @@ -144,7 +142,6 @@ export function createEffectsComposer(
debugCamera.matrixAutoUpdate = true;
debugCamera.position.z = 5;

// composer.addPass(debugTexturePass);
debugMeshes = [bloom.luminancePass.texture, bloom.texture].map(function (t) {
const imageMesh = createImageMesh(t, 1);
imageMesh.material.depthTest = false;
Expand Down Expand Up @@ -177,7 +174,7 @@ export function createEffectsComposer(

setTimeout(function () {
const envSystem = sceneEl.systems["hubs-systems"].environmentSystem;
const gui = envSystem.debugGui.addFolder("Post Effects Debug"); //new GUI({ container: envSystem.debugGui });
const gui = envSystem.debugGui.addFolder("Post Effects Debug");
{
const f = gui.addFolder("Bloom");
f.add(bloom.blendMode, "blendFunction", BlendFunction);
Expand Down

0 comments on commit d822fc7

Please sign in to comment.