You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preload component uses a cube camera to render the scene in a useLayoutEffect in an attempt to increase performance as objects enter the frustum. This can interfere with existing cameras, and also does not eliminate choppiness as these objects are uploaded to the video card.
Relevant code:
Here is the code before, line 28:
// Now compile the scenegl.compile(scene||dScene,camera||dCamera)// And for good measure, hit it with a cube cameraconstcubeRenderTarget=newWebGLCubeRenderTarget(128)constcubeCamera=newCubeCamera(0.01,100000,cubeRenderTarget)cubeCamera.update(gl,(scene||dScene)asScene)cubeRenderTarget.dispose()// Flips these objects back
Suggested solution:
// Now compile the scenegl.render(scene||dScene,camera||dCamera)
The text was updated successfully, but these errors were encountered:
three
version: ^0.164.1@react-three/fiber
version: ^8.16.3@react-three/drei
version: ^9.105.5node
version: 20.11.0npm
(oryarn
) version: 10.2.4Problem description:
Preload component uses a cube camera to render the scene in a useLayoutEffect in an attempt to increase performance as objects enter the frustum. This can interfere with existing cameras, and also does not eliminate choppiness as these objects are uploaded to the video card.
Relevant code:
Here is the code before, line 28:
Suggested solution:
The text was updated successfully, but these errors were encountered: