gre / gl-react

gl-react – React library to write and compose WebGL shaders

Home Page:https://gl-react-cookbook.surge.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I use standard <Image/> to load into the Surface?

Orxcle-xx opened this issue · comments

Hi,

Can I use standard <Image/> to load into the Surface?
Tried it, doesn't work. Maybe I am doing something wrong. Is it supported?

<Surface ...>
   <Image src={....}/>
</Surface>

Thank you.

it's not possible. Surface expects something that renders a <GL.Node to be understood. however, checkout https://github.com/gre/gl-react-image