Replies: 1 comment
-
Hi, this library isn't directly compatible with three's postprocessing code, but you can hack three's passes to account for API differences: import { SSAOPass } from "three";
// Haven't tested this, but it should work.
Object.assign(SSAOPass.prototype, {
initialize() {},
setRenderer() {},
originalRender: SSAOPass.prototype.render,
render(renderer, inputBuffer, outputBuffer, delta, maskActive) {
this.originalRender(renderer, outputBuffer, inputBuffer, delta, maskActive);
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The problem is I really like the god rays in this library but can't seem to make the SSAO look that good for my use. Is there a way to use postprocessing from threejs and postprocessing from this library as well?
Thanks :D
Beta Was this translation helpful? Give feedback.
All reactions