-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support rendering raindrops layer only #3
base: master
Are you sure you want to change the base?
Conversation
Hi! I've tested this solution with a three.js canvas as a background, but in my case raindrop color is still black. Could you please check what I've been missing or if this PR isn't aimed to fix this problem. I'll be very gratefull! Awesome library by the way, I really ❤️ it! 😄
And I've changed the render method in render.ts as follows:
Result: |
If you want to use a another canvas as the background, in your case, the canvas created by three.js. You need to call |
@SardineFish Yep, that worked. Originaly I was using I still have one more question though: I'm trying to add just the raindrops to my canvas with no blur and no mist effects. So basicaly, I want to configure
but with this configuration raindrops (and/or the blur effect) are still black. I have to set |
Thanks for that, I will update it soon, or feel free to make a PR.
Oh, I forgot this. Will be fixed soon, If you need right now, you can just change this line if (this.options.blurStep == 0)
this.matrlCompose.background = this.background; // Use the original background without blur
else
this.matrlCompose.background = this.blurryBackground; I haven't tested but this should work. |
Add an option to support rendering raindrops layer only without background.
Useful for blending raindrops layer with custom HTML elements.
Usage
Add an example
/examples/detached-background
May solve the issue #2