mirror of
https://github.com/storytold/spark.git
synced 2026-10-14 23:52:59 +00:00
Remove obsolete code
This commit is contained in:
@@ -23,8 +23,8 @@ const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerH
|
||||
const renderer = new THREE.WebGLRenderer();
|
||||
renderer.setSize(window.innerWidth, window.innerHeight);
|
||||
document.body.appendChild(renderer.domElement)
|
||||
|
||||
const butterfly = new SplatMesh({ url: "../assets/basic/butterfly.wlg"});
|
||||
`
|
||||
const butterfly = new SplatMesh({ url: "../assets/splats/butterfly.spz"});
|
||||
butterfly.quaternion.set(1, 0, 0, 0);
|
||||
butterfly.position.set(0, 0, -1);
|
||||
scene.add(butterfly);
|
||||
|
||||
@@ -6,9 +6,9 @@ A `PackedSplats` is a collection of Gaussian splats, packed into a format that t
|
||||
|
||||
```typescript
|
||||
const packedSplats = new PackedSplats({
|
||||
// Fetch PLY/WLG/SPZ/SPLAT/KSPLAT file from URL
|
||||
// Fetch PLY/SPZ/SPLAT/KSPLAT file from URL
|
||||
url?: string;
|
||||
// Decode raw PLY/WLG/SPZ/SPLAT/KSPLAT file bytes
|
||||
// Decode raw PLY/SPZ/SPLAT/KSPLAT file bytes
|
||||
fileBytes?: Uint8Array | ArrayBuffer;
|
||||
// Override file type
|
||||
fileType?: SplatFileType;
|
||||
|
||||
+2
-2
@@ -10,9 +10,9 @@ The usual Three.js properties `position`, `quaternion`, `rotation` behave as you
|
||||
|
||||
```typescript
|
||||
const splats = new SplatMesh({
|
||||
// Fetch PLY/WLG/SPZ/SPLAT/KSPLAT file from URL
|
||||
// Fetch PLY/SPZ/SPLAT/KSPLAT file from URL
|
||||
url?: string;
|
||||
// Decode raw PLY/WLG/SPZ/SPLAT/KSPLAT file bytes
|
||||
// Decode raw PLY/SPZ/SPLAT/KSPLAT file bytes
|
||||
fileBytes?: Uint8Array | ArrayBuffer;
|
||||
// Override file type
|
||||
fileType?: SplatFileType;
|
||||
|
||||
Reference in New Issue
Block a user