style: auto-fix linting issues
This commit is contained in:
parent
ae853636ce
commit
8731ddb502
4 changed files with 11 additions and 13 deletions
|
|
@ -201,13 +201,13 @@ export class Visualizer {
|
|||
if (numBins < 1) numBins = 1; // Ensure at least one bin is checked
|
||||
|
||||
let maxVal = 0;
|
||||
for (let i = 0; i < numBins && (startBin + i) < this.dataArray.length; i++) {
|
||||
for (let i = 0; i < numBins && startBin + i < this.dataArray.length; i++) {
|
||||
const val = this.dataArray[startBin + i];
|
||||
if (val > maxVal) maxVal = val;
|
||||
}
|
||||
|
||||
// Normalize: (Max / 255) / Volume
|
||||
let bass = (maxVal) / 255 / volume;
|
||||
let bass = maxVal / 255 / volume;
|
||||
|
||||
const intensity = bass * bass * 10;
|
||||
const stats = this.stats;
|
||||
|
|
|
|||
|
|
@ -615,8 +615,6 @@ export class UnknownPleasuresWebGL {
|
|||
gl.drawArrays(gl.TRIANGLES, 0, vertices.length / 3);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// MUST DISABLE BLEND for post-processing passes so we strictly overwrite FBO contents!
|
||||
gl.disable(gl.BLEND);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue