Remove logs from debugging.

This commit is contained in:
Aiosa 2023-09-26 15:47:50 +02:00
parent e3024deb46
commit 174c4c709a

View File

@ -160,20 +160,15 @@ $.WebGL = class WebGL extends OpenSeadragon.DrawerBase {
let rotMatrix = $.Mat3.makeRotation(-viewport.rotation); let rotMatrix = $.Mat3.makeRotation(-viewport.rotation);
let viewMatrix = scaleMatrix.multiply(rotMatrix).multiply(posMatrix); let viewMatrix = scaleMatrix.multiply(rotMatrix).multiply(posMatrix);
// const gl = this.renderer.gl; const gl = this.renderer.gl;
// gl.bindFramebuffer(gl.FRAMEBUFFER, this._glFrameBuffer); // gl.bindFramebuffer(gl.FRAMEBUFFER, this._glFrameBuffer);
// clear the buffer to draw a new image // clear the buffer to draw a new image
// gl.clear(gl.COLOR_BUFFER_BIT); gl.clear(gl.COLOR_BUFFER_BIT);
//iterate over tiled images and draw each one using a two-pass rendering pipeline if needed //iterate over tiled images and draw each one using a two-pass rendering pipeline if needed
for (const tiledImage of tiledImages) { for (const tiledImage of tiledImages) {
console.log("START TILED IMAGE");
let tilesToDraw = tiledImage.getTilesToDraw(); let tilesToDraw = tiledImage.getTilesToDraw();
// if (tilesToDraw.length === 0) {
// break;
// }
let overallMatrix = viewMatrix; let overallMatrix = viewMatrix;
let imageRotation = tiledImage.getRotation(true); let imageRotation = tiledImage.getRotation(true);
// if needed, handle the tiledImage being rotated // if needed, handle the tiledImage being rotated
@ -195,15 +190,13 @@ $.WebGL = class WebGL extends OpenSeadragon.DrawerBase {
for (let tileIndex = 0; tileIndex < tilesToDraw.length; tileIndex++){ for (let tileIndex = 0; tileIndex < tilesToDraw.length; tileIndex++){
const tile = tilesToDraw[tileIndex].tile; const tile = tilesToDraw[tileIndex].tile;
console.log("TILE " + tile.level + "-" + tile.x + "_" + tile.y);
const matrix = this._getTileMatrix(tile, tiledImage, overallMatrix); const matrix = this._getTileMatrix(tile, tiledImage, overallMatrix);
shader.opacity.set(tile.opacity * tiledImage.opacity); shader.opacity.set(tile.opacity * tiledImage.opacity);
//todo pixelSize value (not yet memoized) //todo pixelSize value (not yet memoized)
this.renderer.processData(tile.cacheKey, { this.renderer.processData(tile.cacheKey, {
transform: matrix, zoom: transform: matrix,
viewport.zoom, zoom: viewport.zoom,
pixelSize: 0 pixelSize: 0
}); });
} }