From 184fddc1b6bda0a3af78990add644dbb5147cea8 Mon Sep 17 00:00:00 2001 From: Baz Utsahajit Date: Sat, 6 Jan 2024 19:02:20 +0000 Subject: [PATCH] Fix water tiling sprite not showing --- tools/demo/src/DemoApplication.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/demo/src/DemoApplication.js b/tools/demo/src/DemoApplication.js index b738bb5a9..8d6d04f67 100644 --- a/tools/demo/src/DemoApplication.js +++ b/tools/demo/src/DemoApplication.js @@ -205,8 +205,10 @@ export default class DemoApplication extends Application * Animate the fish, overlay and filters (if applicable) * @param {number} delta - % difference in time from last frame render */ - animate(delta) + animate(time) { + const delta = time.deltaTime; + this.animateTimer += delta; const { bounds, animateTimer, overlay } = this;