How to use packages that depend on Node.js core modules in React Native.
See the [node-libs-react-native][node-libs-react-native] library as a convenience for implementing this method.
React Fiber is an ongoing reimplementation of React's core algorithm. It is the culmination of over two years of research by the React team.
| ffmpeg -i test.mov -vcodec libx264 -vf 'scale=640:trunc(ow/a/2)*2' -acodec aac -vb 1024k -minrate 1024k -maxrate 1024k -bufsize 1024k -ar 44100 -strict experimental -r 30 out.mp4 |
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| #define M_PI 3.14159265358979323846 /* pi */ | |
| // General parameters | |
| uniform sampler2D from; | |
| uniform sampler2D to; | |
| uniform float progress; |
| // TEST | |
| // This template should ONLY be used for DEVELOPMENT | |
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| uniform sampler2D from, to; | |
| uniform float progress; | |
| uniform vec2 resolution; |
| // This template should ONLY be used for DEVELOPMENT | |
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| uniform sampler2D from, to; | |
| uniform float progress; | |
| uniform vec2 resolution; | |
| uniform sampler2D s; |
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| uniform sampler2D from, to; | |
| uniform float progress; | |
| uniform vec2 resolution; | |
| uniform float persp; | |
| uniform float unzoom; | |
| uniform float reflection; |
| // Converted from https://github.com/rectalogic/rendermix-basic-effects/blob/master/assets/com/rendermix/CrossZoom/CrossZoom.frag | |
| // Which is based on https://github.com/evanw/glfx.js/blob/master/src/filters/blur/zoomblur.js | |
| // With additional easing functions from https://github.com/rectalogic/rendermix-basic-effects/blob/master/assets/com/rendermix/Easing/Easing.glsllib | |
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| uniform sampler2D from, to; | |
| uniform float progress; | |
| uniform vec2 resolution; |
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| // Hardcoded parameters -------- | |
| uniform sampler2D from, to; | |
| uniform float progress; | |
| uniform vec2 resolution; |
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| uniform sampler2D from, to; | |
| uniform float progress; | |
| uniform vec2 resolution; | |
| // Adapted by Sergey Kosarevsky from: | |
| // http://rectalogic.github.io/webvfx/examples_2transition-shader-pagecurl_8html-example.html |