Compare commits
8
Commits
b813c19057
...
v1.2.5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c695075ca1 | ||
|
|
f784ca4d0b | ||
|
|
867c7fdcb1 | ||
|
|
862a620f92 | ||
|
|
ba13569696 | ||
|
|
1c6cadd4c6 | ||
|
|
39bdaaaee9 | ||
|
|
a6240ecba8 |
+3
-3
@@ -108,7 +108,7 @@ release-arch: clean makepkg
|
||||
|
||||
.PHONY: release-%
|
||||
release-%: ## build release {version}
|
||||
$(MAKE) full-clean git-pull prepare-configure-$* aclocal autoconf automake start-configure make-distcheck cp-release prepare-pkgbuild-$* git-commit-release
|
||||
$(MAKE) full-clean git-pull prepare-configure-$* aclocal autoconf automake start-configure make-distcheck cp-release prepare-pkgbuild-$* git-commit-release-$*
|
||||
|
||||
# TOOLS
|
||||
|
||||
@@ -186,8 +186,8 @@ prepare-pkgbuild-%: ## sed -i {version} PKGBUILD
|
||||
sed -i -E "s/pkgver=[0-9]+\\.[0-9]+\\.[0-9]+/pkgver=$*/g" PKGBUILD
|
||||
sha256sum build/forge-steel-$*.tar.gz | cut -d' ' -f1 | xargs -I{} sed -i -E "s/sha256sums=\\('.*'\\)/sha256sums=\\('{}'\\)/g" PKGBUILD
|
||||
|
||||
.PHONY: git-commit-release
|
||||
git-commit-release: ## git commit -am "forge (steel) v{version}"
|
||||
.PHONY: git-commit-release-%
|
||||
git-commit-release-%: ## git commit -am "forge (steel) v{version}"
|
||||
git add configure.ac PKGBUILD
|
||||
git commit -am "forge (steel) v$*"
|
||||
git tag v$* -m "FORGE steel-$*"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
pkgname=forge-steel
|
||||
pkgver=1.2.4
|
||||
pkgver=1.2.5
|
||||
pkgrel=1
|
||||
pkgdesc="Fusion Of Real Time Generative Effects"
|
||||
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64' 'riscv64')
|
||||
depends=('glfw>=1:3', 'v4l-utils>=1.32', 'alsa-lib>=1.2', 'libglvnd>=1.7')
|
||||
url="https://git.klemek.fr/klemek/forge-steel"
|
||||
source=("${pkgname}-steel-${pkgver}.tar.gz::https://git.klemek.fr/klemek/forge-steel/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
||||
sha256sums=('a34c7f8101d8d947e26bee1fa5ab8d87f4292014e5ef17d03eb34fefb387db9e')
|
||||
sha256sums=('e047a12eeefb4453d21bdfc653a20fdf958469d75f8439b6c0e6e11e2aa60cd6')
|
||||
srcdir=build
|
||||
backup=("usr/share/${pkgname}")
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
AC_INIT([forge], [steel-1.2.4], [klemek.dev@proton.me])
|
||||
AC_INIT([forge], [steel-1.2.5], [klemek.dev@proton.me])
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_PROG_CC
|
||||
|
||||
|
||||
@@ -59,6 +59,11 @@ vec3 cmod(vec3 x, float k) {
|
||||
return mod(x + k * .5, k) - k * .5;
|
||||
}
|
||||
|
||||
float smoothstep_transition(float a, float b, float x)
|
||||
{
|
||||
return a + smoothstep(0., 1., x) * (b - a);
|
||||
}
|
||||
|
||||
// COLORS
|
||||
|
||||
vec3 col(float x) {
|
||||
@@ -173,6 +178,53 @@ float noise_f(vec2 n, int f)
|
||||
return o;
|
||||
}
|
||||
|
||||
vec2 perlin_gradient(vec2 p, int seed)
|
||||
{
|
||||
vec2 v = normalize(
|
||||
|
||||
vec2(
|
||||
rand(p.x * 12.34 + p.y * 56.78 + seed) * 2.0 - 1.0,
|
||||
rand(p.x * 56.78 + p.y * 12.34 + seed) * 2.0 - 1.0
|
||||
)
|
||||
);
|
||||
|
||||
if (length(v) == 0.) {
|
||||
return vec2(1, 0);
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
float perlin(vec2 p, int seed)
|
||||
{
|
||||
vec2 p00 = vec2(int(p.x), int(p.y));
|
||||
vec2 p10 = p00 + vec2(1, 0);
|
||||
vec2 p01 = p00 + vec2(0, 1);
|
||||
vec2 p11 = p00 + vec2(1, 1);
|
||||
|
||||
float f00 = dot(perlin_gradient(p00, seed), p - p00);
|
||||
float f10 = dot(perlin_gradient(p10, seed), p - p10);
|
||||
float f01 = dot(perlin_gradient(p01, seed), p - p01);
|
||||
float f11 = dot(perlin_gradient(p11, seed), p - p11);
|
||||
|
||||
return smoothstep_transition(
|
||||
smoothstep_transition(f00, f10, fract(p).x),
|
||||
smoothstep_transition(f01, f11, fract(p).x),
|
||||
fract(p).y
|
||||
) * 0.5 + 0.5;
|
||||
}
|
||||
|
||||
float perlin_f(vec2 n, int seed, int f)
|
||||
{
|
||||
float o = perlin(n, seed) * .5;
|
||||
o += mix(o, perlin(n * 2., seed + 10), f > 1. ? 1. : 0.) * .25;
|
||||
o += mix(o, perlin(n * 4., seed + 20), f > 2. ? 1. : 0.) * .125;
|
||||
o += mix(o, perlin(n * 8., seed + 30), f > 3. ? 1. : 0.) * .0625;
|
||||
o += mix(o, perlin(n * 16., seed + 40), f > 4. ? 1. : 0.) * .03125;
|
||||
o += mix(o, perlin(n * 32., seed + 50), f > 5. ? 1. : 0.) * .015626;
|
||||
return o;
|
||||
}
|
||||
|
||||
// VORONOI
|
||||
|
||||
float v_index(vec2 uv) {
|
||||
|
||||
+3
-2
@@ -271,8 +271,9 @@ subroutine(fx_stage_sub) vec4 fx_9(vec2 vUV, sampler2D previous, sampler2D feedb
|
||||
float k1 = 100. * (1. - zoom) + 10.;
|
||||
float inv_k = 1. / k1;
|
||||
uv2 = floor(uv2 * k1) * inv_k;
|
||||
int start_char = charset_ctrl.x > 0. ? cp437_sets[int(charset.x * CP437_SETS) * 2] : 0x01;
|
||||
int char_span = int((charset_ctrl.x > 0. ? cp437_sets[int(charset.x * CP437_SETS) * 2 + 1] : 255));
|
||||
int charset_index = int(charset.x * (CP437_SETS - 1));
|
||||
int start_char = charset_ctrl.x > 0. ? cp437_sets[charset_index * 2] : 0x01;
|
||||
int char_span = int((charset_ctrl.x > 0. ? cp437_sets[charset_index * 2 + 1] : 255));
|
||||
char_span = int(char_span * max(1. - charset.y, 1. / (char_span * .75)));
|
||||
ivec2 uv2i = ivec2(uv2 * k1);
|
||||
int code = ((charset_ctrl.y < 1. || (uv2i.x % 2 ^ uv2i.y % 2) > 0) ? 1 : 0) * (start_char + int((rand(uv2i) + char_delta) * char_span) % char_span);
|
||||
|
||||
+1
-1
Submodule glsl-glyphs updated: 9978de6cdf...16b52e8fc7
+4
-1
@@ -60,7 +60,10 @@ static void update_active(const Context *context, StateConfig state_config,
|
||||
j++) {
|
||||
k = state_config.group_active_offsets.values[i] + j;
|
||||
safe_midi_write(midi, state_config.group_active_codes.values[k],
|
||||
context->active[i] == j && beat_active ? MIDI_MAX : 0);
|
||||
context->active[i] == j &&
|
||||
(context->selected != k || beat_active)
|
||||
? MIDI_MAX
|
||||
: 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user