mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-14 12:29:30 -07:00
Removing A-Frame alpha test from the MSDF shader. I should have known better!
This commit is contained in:
@@ -174,7 +174,6 @@
|
||||
|
||||
const version = versions[getParam("version", "1999")] || versions["1999"];
|
||||
|
||||
const sharpness = parseFloat(getParam("sharpness", 0.5));
|
||||
const animationSpeed = parseFloat(getParam("animationSpeed", 1));
|
||||
const fallSpeed = parseFloat(getParam("fallSpeed", 1)) * version.fallSpeed;
|
||||
const cycleSpeed = parseFloat(getParam("cycleSpeed", 1)) * version.cycleSpeed;
|
||||
@@ -215,7 +214,6 @@
|
||||
numColumns,
|
||||
numFontColumns,
|
||||
raindropLength,
|
||||
sharpness,
|
||||
showComputationTexture: effect === "none",
|
||||
slant,
|
||||
});
|
||||
@@ -263,11 +261,11 @@
|
||||
composer.passes[composer.passes.length - 1].renderToScreen = true;
|
||||
|
||||
const windowResize = () => {
|
||||
const [width, height] = [window.innerWidth, window.innerHeight];
|
||||
const [width, height, pixelRatio] = [window.innerWidth, window.innerHeight, window.devicePixelRatio];
|
||||
matrixRenderer.resize(width, height);
|
||||
renderer.setSize(width, height);
|
||||
composer.setSize(width, height);
|
||||
bloomPass.setSize( window.innerWidth, window.innerHeight );
|
||||
composer.setSize(width * pixelRatio, height * pixelRatio);
|
||||
bloomPass.setSize( window.innerWidth * pixelRatio, window.innerHeight * pixelRatio );
|
||||
}
|
||||
window.addEventListener("resize", windowResize, false);
|
||||
window.addEventListener("orientationchange", windowResize, false);
|
||||
|
||||
Reference in New Issue
Block a user