Closed GustavoGomez092 closed 1 year ago
Start a new pull request in StackBlitz Codeflow.
Hello!
Edit: Precipitation isn't working in the stackblitz even if all other components are removed.
Cientos/Tres/etc. use pnpm, so that's what I'll use here.
Leaving everything else in place, in your Stackblitz:
pnpm i
pnpm run dev
Here's the resulting Stackblitz with working Precipitation.
Other than that, I'm loving Tres.js and its companion libraries (Cientos, Leches and Post Processing)!
😉
Thank you for the references! I'll surely sign up for the discord!
Describe the bug
Hi! TLDR; I was wondering if there is a way to make the Precipitation component animate after using disableRender on the main TresCanvas.
Whole story: I currently playing with custom shaders and wanted to try them inside Tres, I created a function that extracts the context of the TresCanvas component from a ref to create the RenderPass:
The thing here is that for me to apply the RenderPass to the TresCanvas we need to disable the default renderer, which means that the Precipitation component from cientos no longer animates, I'm no master at three.js, but if you can guide me on where to thinker, I might be able to sort this. If you have any ideas or advice on how to make this run I am all ears! Other than that, I'm loving Tres.js and its companion libraries (Cientos, Leches and Post Processing)!
Let me know if you need more context or info!
Cheers!
Reproduction
https://stackblitz.com/edit/tresjs-basic-5sm94z
Steps to reproduce
Described above and clear on the stackblitz example
System Info
Used Package Manager
npm
Code of Conduct