`gl-react-native` implements OpenGL bindings for react-native.
OpenGL bindings for react-native to implement complex effects over images and components, in VDOM descriptive paradigm.
It lets you implement complex effects over images and components, in the Virtual DOM descriptive paradigm.
More technically, `gl-react-native` allows you to write a [fragment shader](https://www.opengl.org/wiki/Fragment_Shader) that covers a View. The shader can render: generated graphics/demos, effects on top of images, effects over any UI content... anything you can imagine!
There's also a React version [`gl-react`](http://github.com/ProjectSeptemberInc/gl-react) with the same API.
**There's also a React version [`gl-react`](http://github.com/ProjectSeptemberInc/gl-react) with the same API.**
-**Virtual DOM and immutable** paradigm: OpenGL is a low level imperative and mutable API. This library takes the best of it and exposes it in an immutable, descriptive way.
...
...
@@ -19,7 +50,6 @@ There's also a React version [`gl-react`](http://github.com/ProjectSeptemberInc/
-**Support for images** as a texture uniform.
-**Support for UIView rasterisation** as a texture uniform.
## Installation
a few steps are required to install `gl-react-native`:
`gl-react-native` not only allow to add effects on top of images but also on top of any content. This example shows the Hue rotation effect on top of texts and image.
@@ -4,16 +4,13 @@ This example show a graphical composant implemented in OpenGL that would not be
> N.B. the pie is transparent and the background is black with 50% opacity. That would easily allow to put this view on top of an image to show an image upload progress.
Any value can be programmatically animated in a render loop. This example extends the simple [Hello GL](1.md) to add a `value` uniform that is passed in blue color component. `value` is animated over time.