any buffer to any tex
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
// OUT: 2 (FX A)
|
||||
|
||||
in vec2 vUV;
|
||||
layout(location = 2) out vec4 fragColor;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
fragColor = src_stage(vUV);
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
// OUT: 5 (FX B)
|
||||
|
||||
in vec2 vUV;
|
||||
layout(location = 5) out vec4 fragColor;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
fragColor = src_stage(vUV);
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
// OUT: 3 (A+B)
|
||||
|
||||
in vec2 vUV;
|
||||
layout(location = 3) out vec4 fragColor;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
fragColor = fx_stage(vUV, tex2, tex3);
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
// OUT: 6 (A+B)
|
||||
|
||||
in vec2 vUV;
|
||||
layout(location = 6) out vec4 fragColor;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
fragColor = fx_stage(vUV, tex5, tex6);
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
// OUT: 7 (MFX)
|
||||
|
||||
in vec2 vUV;
|
||||
layout(location = 7) out vec4 fragColor;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
fragColor = mix_stage(vUV, tex3, tex6, sin(iTime * 0.25) * 0.3 + 0.3); // TODO tmp
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
// OUT: 0 (OUT)
|
||||
|
||||
in vec2 vUV;
|
||||
layout(location = 0) out vec4 fragColor;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
fragColor = fx_stage(vUV, tex7, tex0);
|
||||
|
||||
+7
-1
@@ -4,8 +4,14 @@ UNIFORM_FPS=iFPS
|
||||
UNIFORM_RESOLUTION=iResolution
|
||||
|
||||
FRAG_COUNT=8
|
||||
FRAG_OUT=7
|
||||
FRAG_OUTPUT=7
|
||||
FRAG_MONITOR=8
|
||||
FRAG_1_OUT=2
|
||||
FRAG_2_OUT=5
|
||||
FRAG_3_OUT=3
|
||||
FRAG_4_OUT=6
|
||||
FRAG_5_OUT=7
|
||||
FRAG_6_OUT=0
|
||||
|
||||
SUB_TYPE_COUNT=3
|
||||
SUB_1_PREFIX=src_
|
||||
|
||||
Reference in New Issue
Block a user