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"
>
<Suspense fallback={null}>
{/* <Preloader /> */}
<Preloader />
{dispatchScene[currentScene as keyof typeof dispatchScene]}
<InputHandler />
</Suspense>

View file

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