Skip to content

Instantly share code, notes, and snippets.

@tschundler
tschundler / io_import_images_as_planes.py
Last active September 26, 2016 07:32
Images as Planes 3.0
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@tschundler
tschundler / StereoViewer Toy.glsl
Last active August 30, 2016 07:27 — 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;
// Tunable parameters
uniform float zoom; // How much to zoom (out) for the effect ~ 0.5 - 1.0
uniform float corner_radius; // Corner radius as a fraction of the image height