wip framebuffers

This commit is contained in:
2025-09-14 15:47:01 +02:00
parent 3320e83efb
commit 85e061398e
4 changed files with 19 additions and 4 deletions
+1 -3
View File
@@ -4,8 +4,7 @@ uniform float iTime;
uniform vec2 iResolution;
uniform sampler2D frame0;
in vec2 vUV;
out vec4 fragColor;
layout(location = 0) out vec4 fragColor2;
layout(location = 0) out vec4 fragColor;
void main() {
vec2 uv0 = vUV.st;
@@ -14,5 +13,4 @@ void main() {
vec3 color = vec3(vUV, sin(iTime * 0.5) * 0.5 + 0.5);
color *= 1 - step(cos(iTime) * 0.1 + 0.5,length(uv1));
fragColor = vec4(color, 1.0);
fragColor2 = vec4(color, 1.0);
}