Favivon - Correção

This commit is contained in:
2026-05-30 19:59:39 -03:00
parent 76ddaa815d
commit d7dfd221f0
32859 changed files with 5459654 additions and 404 deletions
+29
View File
@@ -0,0 +1,29 @@
import { Loader, Texture, Mesh, LoadingManager } from 'three'
export interface Chunk {
palette: number[]
size: { x: number; y: number; z: number }
data: Uint8Array
}
export class VOXLoader extends Loader {
constructor(manager?: LoadingManager)
load(
url: string,
onLoad: (chunks: Chunk[]) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (event: ErrorEvent) => void,
): void
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<object[]>
parse(data: ArrayBuffer): object[]
}
export class VOXMesh extends Mesh {
constructor(chunk: Chunk)
}
// Data3DTexture
export class VOXData3DTexture extends Texture {
constructor(chunk: Chunk)
}