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 / uniforms.default.json
Created May 16, 2014 13:49 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
{"size":0.2}
@gre
gre / fadegrayscale.glsl
Created May 16, 2014 13:49 — 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 / dispersionblur.glsl
Created May 16, 2014 13:47 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#ifdef GL_ES
precision highp float;
#endif
#define QUALITY 32
// General parameters
uniform sampler2D from;
uniform sampler2D to;
uniform float progress;
@gre
gre / heartwipe.glsl
Created May 16, 2014 13:46 — 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 / 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 / circleopen.glsl
Last active December 19, 2015 09:32 — 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 / article.md
Last active July 26, 2022 15:00

What is GL-Transitions?

The GL-Transitions.com initiative aims to build an Open Collection of GLSL Transitions. It aims to be highly community-driven and free-software.

@gre
gre / post-receive
Created May 7, 2014 21:02
Jekyll post-receive script
GIT_REPO=$HOME/repo
TMP_GIT_CLONE=$HOME/tmp/myrepo
PUBLIC_WWW=/var/www/repo
if [ ! -d "$TMP_GIT_CLONE" ] ; then
rm -rf $TMP_GIT_CLONE
git clone $GIT_REPO $TMP_GIT_CLONE
else
cd $TMP_GIT_CLONE
git pull
@gre
gre / generatevideo.sh
Created April 30, 2014 12:34
script to create movie from images. Design to go with the timelapse script: https://gist.github.com/gre/11219793
#!/bin/bash
#
# script to create movie from images. Design to go with the timelapse script: https://gist.github.com/gre/11219793
#
# Usage: ./generatevideo.sh dirWhereImagesAre/
# Usage: ./generatevideo.sh # default is './timelapse' directory
#
# will generates movie.mp4
dir=${1-"timelapse"}
@gre
gre / TODO
Last active August 29, 2015 14:00
Anthill bugfixes and micro enhancements
Bugs:
- Fix the path finding bug: the game lag crazily/freeze and gets unplayable after a long play and especially with a lot of spaces (bad perf of the path solver)
- Fix UI buttons which gets unclickable when over the ground
- Fix the queen die sprite (AFAIR the queen seems to not die visually)
- Fix the "tab away" bug (all ants die if tab leaved for a few seconds): elapsedTime cannot be trusted if > THRESHOLD because it basically means the game is not focused and have very small FPS < 1 ( <-- can the game be paused? )
Enhancement:
- Support Fullscreen API
- Make a ant forget his task when assigned to a new job
- Add keyboard shortcut for keyboard-only play