mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-21 15:29:30 -07:00
Fixing flicker issue in paradise matrix.
This commit is contained in:
@@ -131,8 +131,7 @@ const glyphVariable = gpuCompute.addVariable(
|
|||||||
);
|
);
|
||||||
gpuCompute.setVariableDependencies( glyphVariable, [ glyphVariable ] );
|
gpuCompute.setVariableDependencies( glyphVariable, [ glyphVariable ] );
|
||||||
|
|
||||||
// const brightnessChangeBias = (animationSpeed * fallSpeed) == 0 ? 1 : Math.min(1, Math.abs(animationSpeed * fallSpeed));
|
const brightnessChangeBias = fade ? (animationSpeed * fallSpeed) == 0 ? 1 : Math.min(1, Math.abs(animationSpeed * fallSpeed)) : 1;
|
||||||
const brightnessChangeBias = 1;
|
|
||||||
Object.assign(glyphVariable.material.uniforms, {
|
Object.assign(glyphVariable.material.uniforms, {
|
||||||
time: { type: "f", value: 0 },
|
time: { type: "f", value: 0 },
|
||||||
deltaTime: { type: "f", value: 0.01 },
|
deltaTime: { type: "f", value: 0.01 },
|
||||||
|
|||||||
Reference in New Issue
Block a user