Skip to content

Commit

Permalink
USDZExporter: Add support for WebGPURenderer. (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Oct 23, 2024
1 parent e782494 commit 5b3a14b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion types/three/examples/jsm/Addons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ export * as SceneUtils from "./utils/SceneUtils.js";
export * from "./utils/ShadowMapViewer.js";
export * as SkeletonUtils from "./utils/SkeletonUtils.js";
export * as SortUtils from "./utils/SortUtils.js";
export * from "./utils/TextureUtils.js";
export * from "./utils/UVsDebug.js";
export * from "./utils/WebGLTextureUtils.js";
export * from "./utils/WorkerPool.js";

export * from "./webxr/ARButton.js";
Expand Down
4 changes: 4 additions & 0 deletions types/three/examples/jsm/exporters/USDZExporter.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Object3D } from "three";
import * as WebGLTextureUtils from "../utils/WebGLTextureUtils.js";
import * as WebGPUTextureUtils from "../utils/WebGPUTextureUtils.js";

export interface USDZExporterOptions {
ar?: { anchoring: { type: "plane" }; planeAnchoring: { alignment: "horizontal" | "vertical" | "any" } } | undefined;
Expand All @@ -8,6 +10,8 @@ export interface USDZExporterOptions {
}

export class USDZExporter {
textureUtils: typeof WebGLTextureUtils | typeof WebGPUTextureUtils | null;

constructor();

parse(
Expand Down

0 comments on commit 5b3a14b

Please sign in to comment.