Feature: configurable projection screen resolution
This commit is contained in:
parent
7f2abc635d
commit
32679ced8e
@ -12,6 +12,9 @@ void main() {
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const ledCountX = 256;
|
||||||
|
const ledCountY = ledCountX * (9 / 16);
|
||||||
|
|
||||||
const screenFragmentShader = `
|
const screenFragmentShader = `
|
||||||
uniform sampler2D videoTexture;
|
uniform sampler2D videoTexture;
|
||||||
uniform float u_effect_type;
|
uniform float u_effect_type;
|
||||||
@ -26,8 +29,8 @@ float random(vec2 st) {
|
|||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
// LED Grid Setup
|
// LED Grid Setup
|
||||||
float ledCountX = 128.0;
|
float ledCountX = ${ledCountX}.0;
|
||||||
float ledCountY = 72.0; // 16:9 Aspect Ratio
|
float ledCountY = ${ledCountY}.0;
|
||||||
|
|
||||||
vec2 gridUV = vec2(vUv.x * ledCountX, vUv.y * ledCountY);
|
vec2 gridUV = vec2(vUv.x * ledCountX, vUv.y * ledCountY);
|
||||||
vec2 cell = fract(gridUV);
|
vec2 cell = fract(gridUV);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user