diff --git a/src/examples/InstancedLODs.tsx b/src/examples/InstancedLODs.tsx index f271aa5..b8583d8 100644 --- a/src/examples/InstancedLODs.tsx +++ b/src/examples/InstancedLODs.tsx @@ -1,7 +1,6 @@ import { Entity, setComponent, useOptionalComponent } from '@ir-engine/ecs' import { DndWrapper } from '@ir-engine/editor/src/components/dnd/DndWrapper' import { commitProperty } from '@ir-engine/editor/src/components/properties/Util' -import { DomainConfigState } from '@ir-engine/engine/src/assets/state/DomainConfigState' import { InstancingComponent } from '@ir-engine/engine/src/scene/components/InstancingComponent' import { Devices, @@ -14,6 +13,7 @@ import { TransformComponent } from '@ir-engine/spatial' import { NameComponent } from '@ir-engine/spatial/src/common/NameComponent' import { Vector3_Left, Vector3_Up } from '@ir-engine/spatial/src/common/constants/MathConstants' import { VisibleComponent } from '@ir-engine/spatial/src/renderer/components/VisibleComponent' +import { DomainConfigState } from '@ir-engine/spatial/src/resources/DomainConfigState' import InputGroup from '@ir-engine/ui/src/components/editor/input/Group' import ModelInput from '@ir-engine/ui/src/components/editor/input/Model' import NumericInput from '@ir-engine/ui/src/components/editor/input/Numeric' diff --git a/src/examples/ktx2.tsx b/src/examples/ktx2.tsx index 0155fde..b9b1a30 100644 --- a/src/examples/ktx2.tsx +++ b/src/examples/ktx2.tsx @@ -5,8 +5,8 @@ import { SRGBColorSpace, Texture } from 'three' import { DndWrapper } from '@ir-engine/editor/src/components/dnd/DndWrapper' import { SupportedFileTypes } from '@ir-engine/editor/src/constants/AssetTypes' -import { AssetLoaderState } from '@ir-engine/engine/src/assets/state/AssetLoaderState' import { getState } from '@ir-engine/hyperflux' +import { KTX2LoaderState } from '@ir-engine/spatial/src/resources/loaders/ktx2/KTX2LoaderState' import { Template } from './utils/template' let mesh @@ -28,7 +28,7 @@ const KTX2DND = () => { if (file.name.endsWith('.ktx2')) { const url = URL.createObjectURL(file) - const ktxLoader = getState(AssetLoaderState).ktx2Loader + const ktxLoader = getState(KTX2LoaderState) if (!ktxLoader) throw new Error('KTX2Loader not yet initialized') ktxLoader.load( url,