Replies: 1 comment 8 replies
-
Just to tell you something that didn't work: I want For now I'm just accepting the performance hit of |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What if you wanted to use
alpha=false
andautoClear=false
in Canvas?The default clear color is black in Three. So if you set a custom background color (
gl.setClearColor( 'yellow' )
) you will see a black flash before the yellow background appears.The only way to avoid this that I could find in R3F was to activate the alpha. In Three we can call
gl.setClearColor
before the first rendering so I suppose that's why we can avoid this black flash.Is it possible to set the clear color in R3F (without activating the alpha) without the black flash?
You can see the problem here: https://codesandbox.io/s/canvas-test-84xuf?file=/src/App.js
Beta Was this translation helpful? Give feedback.
All reactions