diff --git a/src/core/index.ts b/src/core/index.ts index 6c343e7f5..1842b9299 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -56,8 +56,6 @@ export * from './Ktx2' export * from './Progress' export * from './Texture' export * from './VideoTexture' -export * from './ScreenVideoTexture' -export * from './WebcamVideoTexture' export * from './useFont' export * from './useSpriteLoader' diff --git a/src/core/ScreenVideoTexture.tsx b/src/web/ScreenVideoTexture.tsx similarity index 92% rename from src/core/ScreenVideoTexture.tsx rename to src/web/ScreenVideoTexture.tsx index 75515e01d..7c16658dd 100644 --- a/src/core/ScreenVideoTexture.tsx +++ b/src/web/ScreenVideoTexture.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { forwardRef, useEffect } from 'react' import { suspend, clear } from 'suspend-react' -import { VideoTexture, VideoTextureProps } from './VideoTexture' +import { VideoTexture, VideoTextureProps } from '..' export type ScreenVideoTextureProps = Omit & { options?: DisplayMediaStreamOptions diff --git a/src/core/WebcamVideoTexture.tsx b/src/web/WebcamVideoTexture.tsx similarity index 93% rename from src/core/WebcamVideoTexture.tsx rename to src/web/WebcamVideoTexture.tsx index d29031e64..e65ecf193 100644 --- a/src/core/WebcamVideoTexture.tsx +++ b/src/web/WebcamVideoTexture.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { forwardRef, useEffect } from 'react' import { suspend, clear } from 'suspend-react' -import { VideoTexture, VideoTextureProps } from './VideoTexture' +import { VideoTexture, VideoTextureProps } from '..' export type WebcamVideoTextureProps = Omit & { constraints?: MediaStreamConstraints diff --git a/src/web/index.ts b/src/web/index.ts index 7a38cc808..29fc9818f 100644 --- a/src/web/index.ts +++ b/src/web/index.ts @@ -14,6 +14,10 @@ export * from './View' // Gizmos export * from './pivotControls' +// Loaders +export * from './ScreenVideoTexture' +export * from './WebcamVideoTexture' + // Controls export * from './FaceControls' export { DragControls } from './DragControls'