Currently, <three-game> provides a default WebGLRenderer instance, but there are cases where users would opt to use SVGRenderer, CSS2DRenderer, CSS3DRenderer, and WebGL1Renderer.
To support these renderers, we could pick up renderer elements as children of <three-game> and conditionally revert #21 for non-WebGL instances. For instance, react-three-fiber tackles this by only using renderer.setAnimationLoop when xr is enabled.
Currently,
<three-game>provides a defaultWebGLRendererinstance, but there are cases where users would opt to useSVGRenderer,CSS2DRenderer,CSS3DRenderer, andWebGL1Renderer.To support these renderers, we could pick up renderer elements as children of
<three-game>and conditionally revert #21 for non-WebGL instances. For instance,react-three-fibertackles this by only usingrenderer.setAnimationLoopwhen xr is enabled.