-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
threejs example reports an error or does not load properly after using postprocessing #457
Comments
Three's postprocessing passes are not compatible with this library. You might get them to work if you tinker with their render methods: THREE.VelocityDepthNormalPass.prototype = Object.assign(THREE.VelocityDepthNormalPass.prototype, {
initialize: function() {},
setRenderer: function() {},
getDepthTexture: function() {},
setDepthTexture: function() {},
originalRender: THREE.VelocityDepthNormalPass.prototype.render,
render: function(renderer, inputBuffer, outputBuffer, delta, maskActive) {
this.originalRender(renderer, outputBuffer, inputBuffer, delta, maskActive);
}
}); |
Closing this as answered. |
Sorry, I just saw it. Thank you very much for your answer. Could you please give me a more detailed example? Or is there a simple way I could render these effects through another channel without any post-processing? |
Lens flares are on the roadmap #279, but there are currently no plans to add an alternative for water rendering. Having that said, three's water objects should work with |
Description of the bug
I've had problems with both of the examples I've used so far, water and lensflares.
To Reproduce
https://threejs.org/examples/#webgl_lensflares
https://threejs.org/examples/?q=water#webgl_water
Expected behavior
They load normally when using threejs' built-in post-processing
Screenshots
Library versions used
The text was updated successfully, but these errors were encountered: