To create a ReactComponent
:
ReactComponent React.createClass(object proto)
Basic example:
var TitleComponent = React.createClass({
// REQUIRED
/* | |
getStream(callback) : Get a stream of items. | |
callback will be called multiple time asynchronously, as if you were continuously getting events from a server. | |
callback will be called with an "item" in parameter. | |
Each "item" is an object with following format: | |
{ |
if (process.env.NODE_ENV !== "production") | |
document.write('<script src="//localhost:9241"></script>'); |
// 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; |
The GLSL.io initiative aims to build an Open Collection of GLSL Transitions. It aims to be highly community-driven and free-software.
<iframe width="853" height="480" src="//www.youtube.com/embed/BYdCNTJaGss" frameborder="0" allowfullscreen="allowfullscreen"></iframe>No data are kept on our servers, data is all stored in Github Gists.
// N.B. this file is used only for the testing version of GLSL.io | |
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D from, to; | |
uniform float progress; | |
uniform vec2 resolution; | |
uniform float persp; |
// 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 luma; |
// 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; |
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D from, to; | |
uniform float progress; | |
uniform vec2 resolution; | |
uniform ivec2 squares; | |
uniform vec2 direction; | |
uniform float smoothness; |