For context, see N8python/n8ao#32
Basically, postprocessing depends explicitly on a fairly old version of N8AO , which is not compatible with Three.js starting from 0.166.0. This means that if you use the N8AO convenience component in postprocessing, you will get a Shader Error unless you hold three.js back.
I think there are multiple possible solutions here:
- Kick the can and just bump n8ao to latest in package.json
- Make n8ao a peerDependency with a semver range like "1.x" and then make the user install/upgrade it on their own
- Document the bug and do nothing else
My preference would be for the second choice, but obviously open to discussion. Happy to open a PR if there is consensus.
Repro: https://github.com/ayan4m1/leela-memorial (then upgrade three.js to latest and run yarn install, npm start, go to "3D view" page and observe error)
For context, see N8python/n8ao#32
Basically, postprocessing depends explicitly on a fairly old version of N8AO , which is not compatible with Three.js starting from 0.166.0. This means that if you use the N8AO convenience component in postprocessing, you will get a Shader Error unless you hold three.js back.
I think there are multiple possible solutions here:
My preference would be for the second choice, but obviously open to discussion. Happy to open a PR if there is consensus.
Repro: https://github.com/ayan4m1/leela-memorial (then upgrade three.js to latest and run yarn install, npm start, go to "3D view" page and observe error)