Rename builds

This commit is contained in:
Diego Marcos Segura
2025-06-09 16:18:02 -07:00
parent 7d26284fbd
commit b531aff52b
19 changed files with 2566 additions and 2550 deletions
@@ -1,9 +1,9 @@
import { ForgeViewpoint, ForgeViewpointOptions } from './ForgeViewpoint';
import { RgbaArray } from './RgbaArray';
import { SparkViewpoint, SparkViewpointOptions } from './SparkViewpoint';
import { SplatAccumulator } from './SplatAccumulator';
import { SplatGenerator } from './SplatGenerator';
import * as THREE from "three";
export type ForgeRendererOptions = {
export type SparkRendererOptions = {
renderer: THREE.WebGLRenderer;
clock?: THREE.Clock;
autoUpdate?: boolean;
@@ -15,12 +15,12 @@ export type ForgeRendererOptions = {
blurAmount?: number;
falloff?: number;
clipXY?: number;
view?: ForgeViewpointOptions;
view?: SparkViewpointOptions;
};
export declare class ForgeRenderer extends THREE.Mesh {
export declare class SparkRenderer extends THREE.Mesh {
renderer: THREE.WebGLRenderer;
material: THREE.ShaderMaterial;
uniforms: ReturnType<typeof ForgeRenderer.makeUniforms>;
uniforms: ReturnType<typeof SparkRenderer.makeUniforms>;
autoUpdate: boolean;
preUpdate: boolean;
originDistance: number;
@@ -36,20 +36,20 @@ export declare class ForgeRenderer extends THREE.Mesh {
active: SplatAccumulator;
private freeAccumulators;
private accumulatorCount;
defaultView: ForgeViewpoint;
autoViewpoints: ForgeViewpoint[];
defaultView: SparkViewpoint;
autoViewpoints: SparkViewpoint[];
private rotateToAccumulator;
private translateToAccumulator;
private modifier;
private lastFrame;
private lastUpdateTime;
private defaultCameras;
viewpoint: ForgeViewpoint;
viewpoint: SparkViewpoint;
private pendingUpdate;
private envViewpoint;
private static cubeRender;
private static pmrem;
constructor(options: ForgeRendererOptions);
constructor(options: SparkRendererOptions);
static makeUniforms(): {
renderSize: {
value: THREE.Vector2;
@@ -101,9 +101,9 @@ export declare class ForgeRenderer extends THREE.Mesh {
private canAllocAccumulator;
private maybeAllocAccumulator;
releaseAccumulator(accumulator: SplatAccumulator): void;
newViewpoint(options: ForgeViewpointOptions): ForgeViewpoint;
newViewpoint(options: SparkViewpointOptions): SparkViewpoint;
onBeforeRender(renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera): void;
prepareViewpoint(viewpoint?: ForgeViewpoint): void;
prepareViewpoint(viewpoint?: SparkViewpoint): void;
update({ scene, viewToWorld, }: {
scene: THREE.Scene;
viewToWorld?: THREE.Matrix4;
@@ -1,8 +1,8 @@
import { ForgeRenderer } from './ForgeRenderer';
import { SparkRenderer } from './SparkRenderer';
import { SplatAccumulator } from './SplatAccumulator';
import { SplatGeometry } from './SplatGeometry';
import * as THREE from "three";
export type ForgeViewpointOptions = {
export type SparkViewpointOptions = {
autoUpdate?: boolean;
camera?: THREE.Camera;
viewToWorld?: THREE.Matrix4;
@@ -19,8 +19,8 @@ export type ForgeViewpointOptions = {
depthBias?: number;
sort360?: boolean;
};
export declare class ForgeViewpoint {
forge: ForgeRenderer;
export declare class SparkViewpoint {
spark: SparkRenderer;
autoUpdate: boolean;
camera?: THREE.Camera;
viewToWorld: THREE.Matrix4;
@@ -47,8 +47,8 @@ export declare class ForgeViewpoint {
private sortingCheck;
private readback;
private orderingFreelist;
constructor(options: ForgeViewpointOptions & {
forge: ForgeRenderer;
constructor(options: SparkViewpointOptions & {
spark: SparkRenderer;
});
dispose(): void;
setAutoUpdate(autoUpdate: boolean): void;
+1 -1
View File
@@ -1,5 +1,5 @@
import * as THREE from "three";
export declare class ForgeControls {
export declare class SparkControls {
fpsMovement: FpsMovement;
pointerControls: PointerControls;
lastTime: number;
+3 -3
View File
@@ -1,5 +1,5 @@
export { ForgeRenderer, type ForgeRendererOptions } from './ForgeRenderer';
export { ForgeViewpoint, type ForgeViewpointOptions } from './ForgeViewpoint';
export { SparkRenderer, type SparkRendererOptions } from './SparkRenderer';
export { SparkViewpoint, type SparkViewpointOptions } from './SparkViewpoint';
export * as dyno from './dyno';
export { SplatLoader, unpackSplats, SplatFileType, getSplatFileType, } from './SplatLoader';
export { PlyReader } from './ply';
@@ -15,6 +15,6 @@ export { constructGrid, constructAxes, constructSpherePoints, imageSplats, textS
export * as generators from './generators';
export { VRButton } from './vrButton';
export { type JointId, JointEnum, JOINT_IDS, NUM_JOINTS, JOINT_INDEX, JOINT_RADIUS, JOINT_SEGMENTS, JOINT_SEGMENT_STEPS, JOINT_TIPS, FINGER_TIPS, Hand, HANDS, type Joint, type HandJoints, type HandsJoints, XrHands, HandMovement, } from './hands';
export { ForgeControls, FpsMovement, PointerControls } from './controls';
export { SparkControls, FpsMovement, PointerControls } from './controls';
export { isMobile, isAndroid, isOculus, flipPixels, pixelsToPngUrl, toHalf, fromHalf, floatToUint8, floatToSint8, Uint8ToFloat, Sint8ToFloat, setPackedSplat, unpackSplat, } from './utils';
export * as utils from './utils';