Start texture-space book renderer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user