ffnord-con-2015-2 hinzugefügt

This commit is contained in:
4ndr3 2015-09-03 11:26:21 +00:00
commit de72f31357
18 changed files with 217 additions and 0 deletions

View file

@ -0,0 +1,7 @@
Created by Florian Wesch <fw@dividuum.de>
This work is licensed under a Creative Commons Attribution 4.0 International License.
http://creativecommons.org/licenses/by/4.0/
The tiles.png, package.png, screenshot.jpg are based on the design by graphorama
http://www.graphorama.de/blog/31c3-das-design/

View file

@ -0,0 +1,6 @@
= A 31c3 themed background pattern
{{screenshot.jpg|Screenshot}}
Background pattern for the
[[http://events.ccc.de/congress/2014/wiki/Static:Main_Page|31c3 conference in Hamburg]].

View file

@ -0,0 +1,4 @@
{
"name": "31c3 Pattern",
"options": []
}

View file

@ -0,0 +1,29 @@
gl.setup(NATIVE_WIDTH, NATIVE_HEIGHT)
sys.set_flag("slow_gc")
util.resource_loader{
"shader31c3.frag";
"noise.png";
"tiles.png";
}
function node.render()
local now = sys.now()
local x = math.sin(now/62) * 320
local y = math.cos(now/128) * 200
gl.perspective(80 + math.cos(now/5) * 3, x + math.sin(now/14)*10, y + math.cos(now/14.4)*20, -100, x, y, 0)
gl.rotate(math.cos(now/9)*5, 0, 0, 1)
shader31c3:use{
time = now / 1234.5;
noise = noise;
tile_res = {16, 16};
res = {16.0 * 12, 16.0 * 12};
}
local size = 40
tiles:draw(-16*size, -16*size, 16*size, 16*size)
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -0,0 +1,6 @@
{
"name": "Animated background pattern",
"author": "fw@dividuum.de",
"desc": "Background pattern created for the 31c3 conference in Hamburg",
"repository": "https://github.com/info-beamer/package-31c3-background"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

View file

@ -0,0 +1,28 @@
uniform sampler2D Texture;
uniform sampler2D noise;
varying vec2 TexCoord;
uniform float time;
uniform vec2 res;
uniform vec2 tile_res;
const vec2 one = vec2(1.0, 1.0);
void main() {
vec2 tcoord_res = TexCoord * res;
vec2 noise_vec1 = vec2(0.0, time * 0.8);
vec2 noise_vec2 = noise_vec1 + vec2(time * 0.9, 0.0);
vec2 pos = floor(tcoord_res) / res;
float foo = texture2D(noise, mod(pos * 41.0 + noise_vec1, one)).x;
float bar = texture2D(noise, mod(pos * 5.0 + noise_vec2, one)).x;
vec2 t = vec2(foo, bar);
t = floor(t * tile_res) / tile_res;
// gl_FragColor = vec4(t, 0.0, 1.0);
gl_FragColor = vec4(texture2D(
Texture,
mod(tcoord_res, one) / tile_res + t
).rgb, 1.0);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB