Replies: 1 comment 1 reply
-
you dont need useWindowDimensions, the canvas stretches to 100% of the next relative/absolute parent. it would be better if size that one in css. as for shaders: #398 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm not really 100% sure about the best practices in
React-Three-Fiber
so some of the following may be a little off. I'm trying to set up a simple scene of just a camera looking at a plane with a shader on it, with the canvas having a max width for desktop, but being nearly full width on mobile. So far, every time I refresh or resize the page, the canvas turns black.Any help would be much appreciated, thanks! :)
Beta Was this translation helpful? Give feedback.
All reactions