Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nwoeanhinnogaehr's full-sized avatar
💾
forgetting a billion proofs

Noah Weninger nwoeanhinnogaehr

💾
forgetting a billion proofs
View GitHub Profile
@nwoeanhinnogaehr
nwoeanhinnogaehr / Kaleidoscope.glsl
Created May 23, 2014 19: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 speed;
uniform float angle;
uniform float power;
@nwoeanhinnogaehr
nwoeanhinnogaehr / SimpleFlip.glsl
Created May 23, 2014 18:42 — 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;
void main() {
vec2 p = gl_FragCoord.xy / resolution.xy;
vec2 q = p;
@nwoeanhinnogaehr
nwoeanhinnogaehr / Dissolve.glsl
Created May 20, 2014 23:40 — 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 blocksize;
// A simple PRNG
@nwoeanhinnogaehr
nwoeanhinnogaehr / HSVfade.glsl
Created May 20, 2014 23:21 — 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;
// HSV functions are from http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl
vec3 hsv2rgb(vec3 c) {
@nwoeanhinnogaehr
nwoeanhinnogaehr / Fold.glsl
Created May 20, 2014 23:14 — 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;
void main() {
vec2 p = gl_FragCoord.xy / resolution.xy;
vec4 a = texture2D(from, (p - vec2(progress, 0.0)) / vec2(1.0-progress, 1.0));