Skip to content

Instantly share code, notes, and snippets.

View gre's full-sized avatar
3 cups required

@greweb gre

3 cups required
View GitHub Profile
@gre
gre / squareswipe.glsl
Created May 23, 2014 12:09 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#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;
@gre
gre / test.glsl
Last active August 29, 2015 14:02 — forked from glslioadmin/TEMPLATE.glsl
/!\ **DEV ONLY** - GLSL.io Transition (v1) used for the development
// 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;
@gre
gre / simple luma.glsl
Last active August 29, 2015 14:02 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
// 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;

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.

@gre
gre / recent.glsl
Last active August 29, 2015 14:04 — forked from glslioadmin/TEMPLATE.glsl
/!\ **DEV ONLY** - GLSL.io Transition (v1) used for the development
// 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;
@gre
gre / reactjs_componentapi_cheatsheet.md
Last active August 29, 2015 14:19 — forked from spoike/reactjs_componentapi_cheatsheet.md
fork & simplified version of spoike's cheatsheet & without JSX syntax

ReactJS Component Cheatsheet

To create a ReactComponent:

ReactComponent React.createClass(object proto)

Basic example:

var TitleComponent = React.createClass({

// REQUIRED

if (process.env.NODE_ENV !== "production")
document.write('<script src="//localhost:9241"></script>');
@gre
gre / code.scala
Created December 12, 2011 09:34 — forked from sadache/code.scala
Play20 Promise sequence function
// What is a Promise sequence function ?
// A function which transform a List[Promise[A]] into a Promise[List[A]]
// Usage:
// val list: List[Promise[Int]] = ...
// val sequenced: Promise[List[Int]] = list.sequence() // got it :)
package utils
import play.api.libs.concurrent._
@gre
gre / fadecolor.glsl
Created May 16, 2014 13:45 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#ifdef GL_ES
precision highp float;
#endif
// General parameters
uniform sampler2D from;
uniform sampler2D to;
uniform float progress;
uniform vec2 resolution;
@gre
gre / linearblur.glsl
Created May 20, 2014 22:02 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
uniform float intensity;
const int PASSES = 8;