Start texture-space book renderer

This commit is contained in:
2026-06-06 14:51:07 +02:00
parent 326f812b22
commit 62215b280f
6 changed files with 259 additions and 100 deletions
-2
View File
@@ -439,7 +439,6 @@ class WebGLBookSceneModule extends BaseModule {
triggerTextureRefresh() {
clearTimeout(this.textureRefreshTimer);
this.textureRefreshTimer = setTimeout(() => {
document.dispatchEvent(new CustomEvent('webgl-book:redraw-pages'));
window.BookLabDebug?.redrawPageTextures?.();
}, 60);
}
@@ -463,7 +462,6 @@ class WebGLBookSceneModule extends BaseModule {
}
if (now - this.lastAnimatedTextureRefresh > 100) {
this.lastAnimatedTextureRefresh = now;
document.dispatchEvent(new CustomEvent('webgl-book:redraw-pages'));
window.BookLabDebug?.redrawPageTextures?.();
}
this.textureRefreshAnimationId = window.requestAnimationFrame(tick);