We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you run the code below, the following log will be output. Originally an array should be output. It is normal when children is undefined.
"use client" import React, {useRef} from "react"; import {extend, useThree} from "@react-three/fiber"; import {EffectComposer, RenderPass, ShaderPass} from "three-stdlib"; extend({EffectComposer, RenderPass, ShaderPass}) export default function Effect( {}: object, ) { const composerRef = useRef<EffectComposer>(null) const {gl, scene, camera} = useThree() console.debug(composerRef.current?.passes) return ( <effectComposer ref={composerRef} args={[gl]}> <renderPass attach="passes" args={[scene, camera]}/> </effectComposer> ) }
Download the React DevTools for a better development experience: https://reactjs.org/link/react-devtools react-dom.development.js:38560 undefined Effect.tsx:14:10 Object { enabled: true, needsSwap: false, clear: true, renderToScreen: false, scene: {…}, camera: {…}, overrideMaterial: undefined, clearColor: undefined, clearAlpha: 0, clearDepth: false, … } Effect.tsx:14:10
https://github.com/kigawa01/test-three/tree/test/effect-composer/1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When you run the code below, the following log will be output.
Originally an array should be output.
It is normal when children is undefined.
code
log
version
sample
https://github.com/kigawa01/test-three/tree/test/effect-composer/1
The text was updated successfully, but these errors were encountered: