Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
fix(postprocessing): ssao blendFunction options should get from the i…
Browse files Browse the repository at this point in the history
…nput
  • Loading branch information
nartc committed May 1, 2022
1 parent 79c9292 commit 32aba1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/postprocessing/effects/src/lib/ssao/ssao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
provideCommonEffectRef,
} from '@angular-three/postprocessing';
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
import { BlendFunction, SSAOEffect } from 'postprocessing';
import { SSAOEffect } from 'postprocessing';

@Component({
selector: 'ngt-ssao',
Expand Down Expand Up @@ -37,7 +37,7 @@ export class NgtSSAO extends NgtCommonEffect<SSAOEffect> {
camera,
normalPass && !depthDownSamplingPass ? normalPass.texture : null,
{
blendFunction: BlendFunction.MULTIPLY,
blendFunction: this.get((s) => s.blendFunction),
samples: 30,
rings: 4,
distanceThreshold: 1.0,
Expand Down

0 comments on commit 32aba1c

Please sign in to comment.