Skip to content

Commit a8ef5eb

Browse files
committed
wip
1 parent 0503e30 commit a8ef5eb

10 files changed

Lines changed: 4 additions & 1 deletion

blur/2025-5-17-23-19-47.png

104 KB
Loading

blur/2025-5-17-23-27-28.png

49.1 KB
Loading

blur/2025-5-17-23-36-50.png

52.3 KB
Loading

blur/2025-5-18-0-19-5.png

83.7 KB
Loading

blur/2025-5-18-0-7-3.png

124 KB
Loading

blur/2025-5-18-10-12-24.png

90.8 KB
Loading

blur/2025-5-18-9-47-17.png

146 KB
Loading

blur/blur.pde

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ void draw() {
5454
image(displayBuffer, 0, 0);
5555

5656
displayBuffer.beginDraw();
57+
if (frameCount == 0) {
58+
displayBuffer.background(backgroundColor);
59+
}
5760
float rectWidth = width * RECT_WIDTH_RATIO;
5861
float rectHeight = height * RECT_HEIGHT_RATIO;
5962
float rectY = PADDING + frameCount; // Start from PADDING and move downwards

blur/data/blur.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void main() {
2424
float sigma = float(kernelSize) * sigmaFactor;
2525
float weight = exp(-(dist * dist) / (2.0 * sigma * sigma));
2626
vec2 offset = vec2(float(x) * blurSize, float(y) * blurSize);
27-
sum += texture2D(texture, uv + offset) * weight;
27+
sum += texture(texture, uv + offset) * weight;
2828
totalWeight += weight;
2929
}
3030
}

blur/final_frame_temp.png

-3.08 KB
Loading

0 commit comments

Comments
 (0)