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
inject previous buffer as a texture #25
Comments
more generic way:
|
implementers will have to use special framebuffer that are preserved after each render. This new collection of framebuffers should be solved by the core impl. in gl-react-native impl, the fbos are shared, so that means we need a separated collection of fbos that belong to each view. We then need a new internal format to describe where the fbo belong (maybe we can have a fboType field that is either "shared" or "preserved") Last point is how to handle the specific |
closing this dup in favor of #27 |
Awesome!
|
We need a way to inject the previous buffer as a texture. usecase: persistence effect (motion blur)
This is a solution to address gre/gl-react-native-v2#19
API
First idea:
<GL.View ... uniforms={{ backbuffer: GL.DrawingBuffer }} />
Second idea (more generic):
<GL.View saveBuffer="foo" ... uniforms={{ backbuffer: GL.fromBuffer("foo") }} />
The text was updated successfully, but these errors were encountered: