mirror of
https://github.com/storytold/spark.git
synced 2026-10-22 08:16:06 +00:00
Bump dist
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
+108
-6
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+64
-51
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+108
-6
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2098
-2007
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+10
@@ -13,6 +13,8 @@ export type SparkRendererOptions = {
|
|||||||
enable2DGS?: boolean;
|
enable2DGS?: boolean;
|
||||||
preBlurAmount?: number;
|
preBlurAmount?: number;
|
||||||
blurAmount?: number;
|
blurAmount?: number;
|
||||||
|
focalDistance?: number;
|
||||||
|
apertureAngle?: number;
|
||||||
falloff?: number;
|
falloff?: number;
|
||||||
clipXY?: number;
|
clipXY?: number;
|
||||||
view?: SparkViewpointOptions;
|
view?: SparkViewpointOptions;
|
||||||
@@ -28,6 +30,8 @@ export declare class SparkRenderer extends THREE.Mesh {
|
|||||||
enable2DGS: boolean;
|
enable2DGS: boolean;
|
||||||
preBlurAmount: number;
|
preBlurAmount: number;
|
||||||
blurAmount: number;
|
blurAmount: number;
|
||||||
|
focalDistance: number;
|
||||||
|
apertureAngle: number;
|
||||||
falloff: number;
|
falloff: number;
|
||||||
clipXY: number;
|
clipXY: number;
|
||||||
time?: number;
|
time?: number;
|
||||||
@@ -75,6 +79,12 @@ export declare class SparkRenderer extends THREE.Mesh {
|
|||||||
blurAmount: {
|
blurAmount: {
|
||||||
value: number;
|
value: number;
|
||||||
};
|
};
|
||||||
|
focalDistance: {
|
||||||
|
value: number;
|
||||||
|
};
|
||||||
|
apertureAngle: {
|
||||||
|
value: number;
|
||||||
|
};
|
||||||
falloff: {
|
falloff: {
|
||||||
value: number;
|
value: number;
|
||||||
};
|
};
|
||||||
|
|||||||
Vendored
+3
-1
@@ -74,6 +74,7 @@ export declare class PointerControls {
|
|||||||
reverseScroll: boolean;
|
reverseScroll: boolean;
|
||||||
moveInertia: number;
|
moveInertia: number;
|
||||||
rotateInertia: number;
|
rotateInertia: number;
|
||||||
|
pointerRollScale: number;
|
||||||
enable: boolean;
|
enable: boolean;
|
||||||
doublePress: ({ position, intervalMs, }: {
|
doublePress: ({ position, intervalMs, }: {
|
||||||
position: THREE.Vector2;
|
position: THREE.Vector2;
|
||||||
@@ -91,7 +92,7 @@ export declare class PointerControls {
|
|||||||
scroll: THREE.Vector3;
|
scroll: THREE.Vector3;
|
||||||
rotateVelocity: THREE.Vector3;
|
rotateVelocity: THREE.Vector3;
|
||||||
moveVelocity: THREE.Vector3;
|
moveVelocity: THREE.Vector3;
|
||||||
constructor({ canvas, rotateSpeed, slideSpeed, scrollSpeed, swapRotateSlide, reverseRotate, reverseSlide, reverseSwipe, reverseScroll, moveInertia, rotateInertia, doublePress, }: {
|
constructor({ canvas, rotateSpeed, slideSpeed, scrollSpeed, swapRotateSlide, reverseRotate, reverseSlide, reverseSwipe, reverseScroll, moveInertia, rotateInertia, pointerRollScale, doublePress, }: {
|
||||||
canvas: HTMLCanvasElement;
|
canvas: HTMLCanvasElement;
|
||||||
rotateSpeed?: number;
|
rotateSpeed?: number;
|
||||||
slideSpeed?: number;
|
slideSpeed?: number;
|
||||||
@@ -103,6 +104,7 @@ export declare class PointerControls {
|
|||||||
reverseScroll?: boolean;
|
reverseScroll?: boolean;
|
||||||
moveInertia?: number;
|
moveInertia?: number;
|
||||||
rotateInertia?: number;
|
rotateInertia?: number;
|
||||||
|
pointerRollScale?: number;
|
||||||
doublePress?: ({ position, intervalMs, }: {
|
doublePress?: ({ position, intervalMs, }: {
|
||||||
position: THREE.Vector2;
|
position: THREE.Vector2;
|
||||||
intervalMs: number;
|
intervalMs: number;
|
||||||
|
|||||||
Vendored
+15
@@ -13,6 +13,7 @@ export declare const hashFloat: <T extends ValueTypes>(value: DynoVal<T>) => Dyn
|
|||||||
export declare const hashVec2: <T extends ValueTypes>(value: DynoVal<T>) => DynoVal<"vec2">;
|
export declare const hashVec2: <T extends ValueTypes>(value: DynoVal<T>) => DynoVal<"vec2">;
|
||||||
export declare const hashVec3: <T extends ValueTypes>(value: DynoVal<T>) => DynoVal<"vec3">;
|
export declare const hashVec3: <T extends ValueTypes>(value: DynoVal<T>) => DynoVal<"vec3">;
|
||||||
export declare const hashVec4: <T extends ValueTypes>(value: DynoVal<T>) => DynoVal<"vec4">;
|
export declare const hashVec4: <T extends ValueTypes>(value: DynoVal<T>) => DynoVal<"vec4">;
|
||||||
|
export declare const normalizedDepth: (z: DynoVal<"float">, zNear: DynoVal<"float">, zFar: DynoVal<"float">) => DynoVal<"float">;
|
||||||
export declare class DynoRemapIndex extends Dyno<{
|
export declare class DynoRemapIndex extends Dyno<{
|
||||||
from: "int";
|
from: "int";
|
||||||
to: "int";
|
to: "int";
|
||||||
@@ -137,3 +138,17 @@ export declare class HashVec4<T extends ValueTypes> extends DynoBlock<{
|
|||||||
});
|
});
|
||||||
dynoOut(): DynoValue<"vec4">;
|
dynoOut(): DynoValue<"vec4">;
|
||||||
}
|
}
|
||||||
|
export declare class NormalizedDepth extends Dyno<{
|
||||||
|
z: "float";
|
||||||
|
zNear: "float";
|
||||||
|
zFar: "float";
|
||||||
|
}, {
|
||||||
|
depth: "float";
|
||||||
|
}> implements HasDynoOut<"float"> {
|
||||||
|
constructor({ z, zNear, zFar, }: {
|
||||||
|
z: DynoVal<"float">;
|
||||||
|
zNear: DynoVal<"float">;
|
||||||
|
zFar: DynoVal<"float">;
|
||||||
|
});
|
||||||
|
dynoOut(): DynoValue<"float">;
|
||||||
|
}
|
||||||
|
|||||||
Vendored
+1
@@ -13,6 +13,7 @@ export { SplatSkinning, type SplatSkinningOptions } from './SplatSkinning';
|
|||||||
export { SplatEdit, type SplatEditOptions, SplatEditSdf, type SplatEditSdfOptions, SplatEditSdfType, SplatEditRgbaBlendMode, SplatEdits, } from './SplatEdit';
|
export { SplatEdit, type SplatEditOptions, SplatEditSdf, type SplatEditSdfOptions, SplatEditSdfType, SplatEditRgbaBlendMode, SplatEdits, } from './SplatEdit';
|
||||||
export { constructGrid, constructAxes, constructSpherePoints, imageSplats, textSplats, } from './splatConstructors';
|
export { constructGrid, constructAxes, constructSpherePoints, imageSplats, textSplats, } from './splatConstructors';
|
||||||
export * as generators from './generators';
|
export * as generators from './generators';
|
||||||
|
export * as modifiers from './modifiers';
|
||||||
export { VRButton } from './vrButton';
|
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 { 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 { SparkControls, FpsMovement, PointerControls } from './controls';
|
export { SparkControls, FpsMovement, PointerControls } from './controls';
|
||||||
|
|||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
export * from './modifiers/normalColor';
|
||||||
|
export * from './modifiers/depthColor';
|
||||||
Vendored
+17
@@ -0,0 +1,17 @@
|
|||||||
|
import { SplatTransformer } from '../SplatGenerator';
|
||||||
|
import { SplatMesh } from '../SplatMesh';
|
||||||
|
import { DynoVal } from '../dyno';
|
||||||
|
export declare function makeDepthColorModifier(splatToView: SplatTransformer, minDepth: DynoVal<"float">, maxDepth: DynoVal<"float">, reverse: DynoVal<"bool">): import('../dyno').DynoBlock<{
|
||||||
|
gsplat: {
|
||||||
|
type: "Gsplat";
|
||||||
|
};
|
||||||
|
}, {
|
||||||
|
gsplat: {
|
||||||
|
type: "Gsplat";
|
||||||
|
};
|
||||||
|
}>;
|
||||||
|
export declare function setDepthColor(splats: SplatMesh, minDepth: number, maxDepth: number, reverse?: boolean): {
|
||||||
|
minDepth: import('../dyno').DynoConst<"float">;
|
||||||
|
maxDepth: import('../dyno').DynoConst<"float">;
|
||||||
|
reverse: import('../dyno').DynoConst<"bool">;
|
||||||
|
};
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
import { SplatTransformer } from '../SplatGenerator';
|
||||||
|
import { SplatMesh } from '../SplatMesh';
|
||||||
|
export declare function makeNormalColorModifier(splatToView: SplatTransformer): import('../dyno').DynoBlock<{
|
||||||
|
gsplat: {
|
||||||
|
type: "Gsplat";
|
||||||
|
};
|
||||||
|
}, {
|
||||||
|
gsplat: {
|
||||||
|
type: "Gsplat";
|
||||||
|
};
|
||||||
|
}>;
|
||||||
|
export declare function setWorldNormalColor(splats: SplatMesh): void;
|
||||||
Reference in New Issue
Block a user