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);