From 8036d06689d3a2baf88e16eb56d9d10c673db5b2 Mon Sep 17 00:00:00 2001 From: Yuki Shimada Date: Fri, 14 Jul 2023 21:16:59 +0900 Subject: [PATCH] refactor: require hdrpng --- src/webgl/WebGLResourceRepository.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/webgl/WebGLResourceRepository.ts b/src/webgl/WebGLResourceRepository.ts index 319825648..1da4a773d 100644 --- a/src/webgl/WebGLResourceRepository.ts +++ b/src/webgl/WebGLResourceRepository.ts @@ -61,8 +61,7 @@ import { ShaderSemanticsInfo } from '../foundation/definitions/ShaderSemanticsIn import { Sampler } from '../foundation/textures/Sampler'; import { EnumIO } from '../foundation/misc/EnumIO'; import { CubeTexture } from '../foundation/textures/CubeTexture'; - -declare let HDRImage: any; +const HDRImage = require('../../vendor/hdrpng.min.js'); export type VertexHandles = { vaoHandle: CGAPIResourceHandle;