Hook to read the per-canvas RenderingState. Resolves the store from the current R3F scene, so it must be used inside a Canvas.
Canvas
const isOit = useRenderingState(state => state.transparencyMode === 'oit'); Copy
const isOit = useRenderingState(state => state.transparencyMode === 'oit');
Hook to read the per-canvas RenderingState. Resolves the store from the current R3F scene, so it must be used inside a
Canvas.