From 7bee66f02c7f1fa7fec201483087a06c6339c102 Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 25 Jul 2024 10:37:29 -0400 Subject: [PATCH] Updates --- packages/utils/src/filters/PaletteMapFilter.ts | 6 ------ src/DevTools.ts | 16 ++++++++-------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/packages/utils/src/filters/PaletteMapFilter.ts b/packages/utils/src/filters/PaletteMapFilter.ts index 103a983c..ac834201 100644 --- a/packages/utils/src/filters/PaletteMapFilter.ts +++ b/packages/utils/src/filters/PaletteMapFilter.ts @@ -1,5 +1,4 @@ import { BufferImageSource, Filter, FilterSystem, GlProgram, RenderSurface, Texture } from 'pixi.js'; -import { TextureUtils } from '../TextureUtils'; export interface PaletteMapFilterOptions { @@ -98,11 +97,6 @@ export class PaletteMapFilter extends Filter }) }); - (async () => - { - console.log(await TextureUtils.generateImageUrl(lutTexture)); - })(); - super({ gpuProgram: null, glProgram, diff --git a/src/DevTools.ts b/src/DevTools.ts index db9fa0f4..7c8b0180 100644 --- a/src/DevTools.ts +++ b/src/DevTools.ts @@ -9,17 +9,17 @@ declare global { NitroDevTools?: { - roomEngine(): RoomEngine; - textureCache(): TextureSource[]; - texturePool(): { [index: string]: { [index: string]: Texture[] } }; - textureGC(): TextureGCSystem; + roomEngine: RoomEngine; + textureCache: TextureSource[]; + texturePool: { [index: string]: { [index: string]: Texture[] } }; + textureGC: TextureGCSystem; }; } } window.NitroDevTools = { - roomEngine: () => GetRoomEngine(), - textureCache: () => GetRenderer().texture.managedTextures, - texturePool: () => GetTexturePool().textures, - textureGC: () => GetRenderer().textureGC + roomEngine: GetRoomEngine(), + textureCache: GetRenderer().texture.managedTextures, + texturePool: GetTexturePool().textures, + textureGC: GetRenderer().textureGC };