This commit is contained in:
Bill 2024-07-25 10:37:29 -04:00
parent 5eff3f00a1
commit 7bee66f02c
2 changed files with 8 additions and 14 deletions

View File

@ -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,

View File

@ -9,17 +9,17 @@ declare global
{
NitroDevTools?:
{
roomEngine(): RoomEngine;
textureCache(): TextureSource<any>[];
texturePool(): { [index: string]: { [index: string]: Texture[] } };
textureGC(): TextureGCSystem;
roomEngine: RoomEngine;
textureCache: TextureSource<any>[];
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
};