wip config

This commit is contained in:
2025-09-18 20:27:00 +02:00
parent e811d404a1
commit 998c2cb222
14 changed files with 93 additions and 37 deletions
+1
View File
@@ -22,6 +22,7 @@ uniform sampler2D frame4;
uniform sampler2D frame5;
uniform sampler2D frame6;
uniform sampler2D frame7;
uniform sampler2D frame8;
// 3. definitions
// --------------
+3 -3
View File
@@ -1,11 +1,11 @@
// SRC A
// -----------
// IN: 0 (MFX)
// IN: 0 (OUT)
// IN: 1 (IN A)
// OUT: 3 (FX A)
// OUT: 2 (FX A)
in vec2 vUV;
layout(location = 3) out vec3 fragColor;
layout(location = 2) out vec3 fragColor;
void main() {
fragColor = src_stage(vUV);
+4 -4
View File
@@ -1,11 +1,11 @@
// SRC B
// -----------
// IN: 0 (MFX)
// IN: 2 (IN B)
// OUT: 4 (FX B)
// IN: 0 (OUT)
// IN: 4 (IN B)
// OUT: 5 (FX B)
in vec2 vUV;
layout(location = 4) out vec3 fragColor;
layout(location = 5) out vec3 fragColor;
void main() {
fragColor = src_stage(vUV);
+5 -5
View File
@@ -1,12 +1,12 @@
// FX A
// -------------
// IN: 3 (SRC A)
// IN: 5 (FX A)
// OUT: 5 (A+B)
// IN: 2 (SRC A)
// IN: 3 (FX A)
// OUT: 3 (A+B)
in vec2 vUV;
layout(location = 5) out vec3 fragColor;
layout(location = 3) out vec3 fragColor;
void main() {
fragColor = fx_stage(vUV, frame3, frame5);
fragColor = fx_stage(vUV, frame2, frame3);
}
+2 -2
View File
@@ -1,6 +1,6 @@
// FX B
// -------------
// IN: 4 (SRC B)
// IN: 5 (SRC B)
// IN: 6 (FX B)
// OUT: 6 (A+B)
@@ -8,5 +8,5 @@ in vec2 vUV;
layout(location = 6) out vec3 fragColor;
void main() {
fragColor = fx_stage(vUV, frame4, frame6);
fragColor = fx_stage(vUV, frame5, frame6);
}
+2 -2
View File
@@ -1,6 +1,6 @@
// A+B
// ------------
// IN: 5 (FX A)
// IN: 3 (FX A)
// IN: 6 (FX B)
// OUT: 7 (MFX)
@@ -8,5 +8,5 @@ in vec2 vUV;
layout(location = 7) out vec3 fragColor;
void main() {
fragColor = mix_stage(vUV, frame5, frame6, sin(iTime * 0.25) * 0.3 + 0.3); // TODO tmp
fragColor = mix_stage(vUV, frame3, frame6, sin(iTime * 0.25) * 0.3 + 0.3); // TODO tmp
}
+1 -1
View File
@@ -1,6 +1,6 @@
// MFX
// ------------
// IN: 7 (A+B)
// IN: 8 (A+B)
// IN: 0 (OUT)
// OUT: 0 (OUT)
+8
View File
@@ -0,0 +1,8 @@
SUB_COUNT=16
FRAG_COUNT=6
FRAG_OUT_1=2
FRAG_OUT_2=5
FRAG_OUT_3=3
FRAG_OUT_4=6
FRAG_OUT_5=7
FRAG_OUT_6=0