Skip to content
New issue

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

react-three-fiber support #270

Open
drcmda opened this issue Aug 27, 2020 · 1 comment
Open

react-three-fiber support #270

drcmda opened this issue Aug 27, 2020 · 1 comment

Comments

@drcmda
Copy link

drcmda commented Aug 27, 2020

Would it be possible to also create a surface for r3f: https://github.com/react-spring/react-three-fiber ? If that component is inside <Canvas/> it has access to practically everything it would need, like the gl instance/render context, etc

function({ width, height }) {
  const { gl } = useThree()
  return (
    <mesh scale={[width, height, 1]}>
      <shaderMaterial ......
@gre
Copy link
Owner

gre commented Dec 23, 2020

I'm not exactly sure how things could interoperate, but maybe there is something to do indeed. I feel there could be a third party library that achieve that (doing the glue between the two libraries). I'm not exactly sure how things can interoperate the best on both side but no technical blocker I feel.
I'm happy to also accept a library added in packages/ that would achieve this. If no one take it, I might eventually try it out, no ETA on my end yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants