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 / CODE.scala
Last active December 20, 2015 01:59 — forked from playxamplez-admin/CODE
retrieve, process and re-encode a video with #PlayCLI and #Iteratees
val videoStream: Enumerator[Array[Byte]]
val scaleVideoHalf = CLI.pipe("ffmpeg -i pipe:0 -vf scale=iw/2:-1 -f avi pipe:1")
Ok.stream(videoStream &> scaleVideoHalf).withHeaders(CONTENT_TYPE -> "video/avi")
@gre
gre / fade.glsl
Created January 24, 2014 21:12 — forked from gre/TEMPLATE.glsl
Simple fade transition
#ifdef GL_ES
precision highp float;
#endif
uniform vec2 resolution;
uniform float progress;
uniform sampler2D from, to;
void main() {
vec2 p = gl_FragCoord.xy / resolution.xy;
gl_FragColor = mix(texture2D(from, p), texture2D(to, p), progress);
@gre
gre / fadegrayscale.glsl
Last active January 4, 2016 10:09 — forked from gre/TEMPLATE.glsl
Fade to Grayscale
#ifdef GL_ES
precision highp float;
#endif
// General parameters
uniform sampler2D from;
uniform sampler2D to;
uniform float progress;
uniform vec2 resolution;
@gre
gre / squeeze.glsl
Created January 24, 2014 22:57 — forked from gre/TEMPLATE.glsl
#ifdef GL_ES
precision highp float;
#endif
// General parameters
uniform sampler2D from;
uniform sampler2D to;
uniform float progress;
uniform vec2 resolution;
@gre
gre / squares.glsl
Last active January 4, 2016 10:28 — forked from gre/TEMPLATE.glsl
#ifdef GL_ES
precision highp float;
#endif
// General parameters
uniform sampler2D from;
uniform sampler2D to;
uniform float progress;
uniform vec2 resolution;
@gre
gre / flash.glsl
Last active January 4, 2016 10:29 — forked from gre/TEMPLATE.glsl
#ifdef GL_ES
precision highp float;
#endif
// General parameters
uniform sampler2D from;
uniform sampler2D to;
uniform float progress;
uniform vec2 resolution;
@gre
gre / ripple.glsl
Created January 24, 2014 23:04 — forked from gre/TEMPLATE.glsl
#ifdef GL_ES
precision highp float;
#endif
// General parameters
uniform sampler2D from;
uniform sampler2D to;
uniform float progress;
uniform vec2 resolution;
@gre
gre / flyeye.glsl
Last active January 4, 2016 10:29 — forked from gre/TEMPLATE.glsl
#ifdef GL_ES
precision highp float;
#endif
// General parameters
uniform sampler2D from;
uniform sampler2D to;
uniform float progress;
uniform vec2 resolution;
{ "direction": [1, -1], "smoothness": 0.5 }
@gre
gre / doorway.glsl
Last active January 4, 2016 10:29 — forked from gre/TEMPLATE.glsl
#ifdef GL_ES
precision highp float;
#endif
// General parameters
uniform sampler2D from;
uniform sampler2D to;
uniform float progress;
uniform vec2 resolution;