added a note to texture loader, uncommented preloader

This commit is contained in:
ad044 2021-03-31 03:29:54 +04:00
parent 258a236dde
commit bc06e229ea
2 changed files with 3 additions and 1 deletions

View file

@ -88,7 +88,7 @@ const Game = () => {
className="main-canvas" className="main-canvas"
> >
<Suspense fallback={null}> <Suspense fallback={null}>
{/* <Preloader /> */} <Preloader />
{dispatchScene[currentScene as keyof typeof dispatchScene]} {dispatchScene[currentScene as keyof typeof dispatchScene]}
<InputHandler /> <InputHandler />
</Suspense> </Suspense>

View file

@ -13,6 +13,8 @@ import {
custom implementation of TextureLoader that automatically sets minFilter to NearestFilter for proper WebGL1 support. custom implementation of TextureLoader that automatically sets minFilter to NearestFilter for proper WebGL1 support.
this is still experimental
*/ */
export class CustomTextureLoader extends Loader { export class CustomTextureLoader extends Loader {
load = ( load = (