From 32679ced8e57cca58bb032e3dd2738be67af0fca Mon Sep 17 00:00:00 2001 From: Dejvino Date: Tue, 30 Dec 2025 23:28:49 +0000 Subject: [PATCH] Feature: configurable projection screen resolution --- party-stage/src/scene/projection-screen.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/party-stage/src/scene/projection-screen.js b/party-stage/src/scene/projection-screen.js index c4603cf..fb6b2a0 100644 --- a/party-stage/src/scene/projection-screen.js +++ b/party-stage/src/scene/projection-screen.js @@ -12,6 +12,9 @@ void main() { } `; +const ledCountX = 256; +const ledCountY = ledCountX * (9 / 16); + const screenFragmentShader = ` uniform sampler2D videoTexture; uniform float u_effect_type; @@ -26,8 +29,8 @@ float random(vec2 st) { void main() { // LED Grid Setup - float ledCountX = 128.0; - float ledCountY = 72.0; // 16:9 Aspect Ratio + float ledCountX = ${ledCountX}.0; + float ledCountY = ${ledCountY}.0; vec2 gridUV = vec2(vUv.x * ledCountX, vUv.y * ledCountY); vec2 cell = fract(gridUV);