@tresjs/cientos 3.7.0 → 4.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/dist/core/abstractions/GlobalAudio.d.ts +1 -1
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +1 -1
- package/dist/core/abstractions/Levioso.vue.d.ts +1 -1
- package/dist/core/abstractions/MouseParallax.vue.d.ts +1 -1
- package/dist/core/abstractions/Reflector.vue.d.ts +1 -1
- package/dist/core/abstractions/Text3D.vue.d.ts +1 -1
- package/dist/core/abstractions/useFBO/component.vue.d.ts +1 -1
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +1 -1
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +6 -0
- package/dist/core/controls/CameraControls.vue.d.ts +957 -1032
- package/dist/core/controls/KeyboardControls.vue.d.ts +1 -1
- package/dist/core/controls/MapControls.vue.d.ts +1 -1
- package/dist/core/controls/OrbitControls.vue.d.ts +891 -961
- package/dist/core/controls/PointerLockControls.vue.d.ts +1 -1
- package/dist/core/controls/ScrollControls.vue.d.ts +1 -1
- package/dist/core/controls/TransformControls.vue.d.ts +1 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +1 -1
- package/dist/core/loaders/useFBX/component.vue.d.ts +44 -3
- package/dist/core/loaders/useGLTF/component.vue.d.ts +31 -1
- package/dist/core/loaders/useGLTF/index.d.ts +1 -1
- package/dist/core/materials/blurPass.d.ts +22 -0
- package/dist/core/materials/convolutionMaterial.d.ts +7 -0
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +2 -2
- package/dist/core/materials/index.d.ts +2 -1
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +74 -0
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +51 -0
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +1 -1
- package/dist/core/misc/BakeShadows.d.ts +1 -0
- package/dist/core/misc/Stats.d.ts +1 -1
- package/dist/core/misc/StatsGl.d.ts +1 -1
- package/dist/core/misc/html/HTML.vue.d.ts +2 -2
- package/dist/core/misc/index.d.ts +3 -1
- package/dist/core/misc/useGLTFExporter.d.ts +12 -0
- package/dist/core/shapes/Box.vue.d.ts +1 -1
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +1 -1
- package/dist/core/shapes/Circle.vue.d.ts +1 -1
- package/dist/core/shapes/Cone.vue.d.ts +1 -1
- package/dist/core/shapes/Dodecahedron.vue.d.ts +1 -1
- package/dist/core/shapes/Icosahedron.vue.d.ts +1 -1
- package/dist/core/shapes/Line2.vue.d.ts +1 -1
- package/dist/core/shapes/Octahedron.vue.d.ts +1 -1
- package/dist/core/shapes/Plane.vue.d.ts +1 -1
- package/dist/core/shapes/Ring.vue.d.ts +1 -1
- package/dist/core/shapes/RoundedBox.vue.d.ts +58 -0
- package/dist/core/shapes/Sphere.vue.d.ts +1 -1
- package/dist/core/shapes/Superformula.vue.d.ts +1 -1
- package/dist/core/shapes/Tetrahedron.vue.d.ts +1 -1
- package/dist/core/shapes/Torus.vue.d.ts +1 -1
- package/dist/core/shapes/TorusKnot.vue.d.ts +1 -1
- package/dist/core/shapes/Tube.vue.d.ts +1 -1
- package/dist/core/shapes/index.d.ts +2 -1
- package/dist/core/staging/Backdrop.vue.d.ts +1 -1
- package/dist/core/staging/Ocean.vue.d.ts +163 -0
- package/dist/core/staging/Precipitation.vue.d.ts +1 -1
- package/dist/core/staging/Sky.vue.d.ts +6 -1
- package/dist/core/staging/Smoke.vue.d.ts +1 -1
- package/dist/core/staging/Sparkles/ShaderData.d.ts +1 -1
- package/dist/core/staging/Sparkles/component.vue.d.ts +4 -4
- package/dist/core/staging/Stars.vue.d.ts +1 -1
- package/dist/core/staging/index.d.ts +2 -1
- package/dist/trescientos.js +7825 -5764
- package/dist/trescientos.umd.cjs +355 -115
- package/dist/utils/constants.d.ts +1 -0
- package/package.json +23 -24
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
44
44
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
45
|
change: (...args: any[]) => void;
|
|
46
46
|
isLock: (...args: any[]) => void;
|
|
47
|
-
}, string, import("vue").
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PointerLockControlsProps>, {
|
|
48
48
|
makeDefault: boolean;
|
|
49
49
|
}>>> & {
|
|
50
50
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -54,7 +54,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
54
54
|
htmlScroll: boolean;
|
|
55
55
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
56
56
|
"update:modelValue": (...args: any[]) => void;
|
|
57
|
-
}, string, import("vue").
|
|
57
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
58
58
|
pages?: number | undefined;
|
|
59
59
|
distance?: number | undefined;
|
|
60
60
|
smoothScroll?: number | undefined;
|
|
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
28
28
|
mouseDown: (...args: any[]) => void;
|
|
29
29
|
mouseUp: (...args: any[]) => void;
|
|
30
30
|
objectChange: (...args: any[]) => void;
|
|
31
|
-
}, string, import("vue").
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TransformControlsProps>, {
|
|
32
32
|
mode: string;
|
|
33
33
|
enabled: boolean;
|
|
34
34
|
axis: string;
|
|
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
96
96
|
depth: string;
|
|
97
97
|
}>, {
|
|
98
98
|
value: import("vue").ShallowRef<any>;
|
|
99
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
99
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SVGProps>, {
|
|
100
100
|
skipStrokes: boolean;
|
|
101
101
|
skipFills: boolean;
|
|
102
102
|
depth: string;
|
|
@@ -7,14 +7,47 @@ export interface FBXModelProps {
|
|
|
7
7
|
* @required
|
|
8
8
|
*/
|
|
9
9
|
path: string;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* Whether to use cast-shadow to the model.
|
|
13
|
+
*
|
|
14
|
+
* @type {boolean}
|
|
15
|
+
* @default false
|
|
16
|
+
* @memberof FBXModelProps
|
|
17
|
+
*
|
|
18
|
+
**/
|
|
19
|
+
castShadow?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* Whether to use receive-shadow to the model.
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @default false
|
|
26
|
+
* @memberof FBXModelProps
|
|
27
|
+
*
|
|
28
|
+
**/
|
|
29
|
+
receiveShadow?: boolean;
|
|
10
30
|
}
|
|
11
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
31
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
32
|
path: string;
|
|
33
|
+
castShadow?: boolean | undefined;
|
|
34
|
+
receiveShadow?: boolean | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
castShadow: boolean;
|
|
37
|
+
receiveShadow: boolean;
|
|
13
38
|
}>, {
|
|
14
39
|
value: import("vue").Ref<any>;
|
|
15
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
40
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
41
|
path: string;
|
|
17
|
-
|
|
42
|
+
castShadow?: boolean | undefined;
|
|
43
|
+
receiveShadow?: boolean | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
castShadow: boolean;
|
|
46
|
+
receiveShadow: boolean;
|
|
47
|
+
}>>>, {
|
|
48
|
+
castShadow: boolean;
|
|
49
|
+
receiveShadow: boolean;
|
|
50
|
+
}, {}>;
|
|
18
51
|
export default _default;
|
|
19
52
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
53
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -25,3 +58,11 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
25
58
|
required: true;
|
|
26
59
|
};
|
|
27
60
|
};
|
|
61
|
+
type __VLS_WithDefaults<P, D> = {
|
|
62
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
63
|
+
default: D[K];
|
|
64
|
+
}> : P[K];
|
|
65
|
+
};
|
|
66
|
+
type __VLS_Prettify<T> = {
|
|
67
|
+
[K in keyof T]: T[K];
|
|
68
|
+
} & {};
|
|
@@ -19,6 +19,26 @@ export interface GLTFModelProps {
|
|
|
19
19
|
*
|
|
20
20
|
**/
|
|
21
21
|
draco?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* Whether to use cast-shadow to the model.
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @default false
|
|
28
|
+
* @memberof GLTFModelProps
|
|
29
|
+
*
|
|
30
|
+
**/
|
|
31
|
+
castShadow?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* Whether to use receive-shadow to the model.
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @default false
|
|
38
|
+
* @memberof GLTFModelProps
|
|
39
|
+
*
|
|
40
|
+
**/
|
|
41
|
+
receiveShadow?: boolean;
|
|
22
42
|
/**
|
|
23
43
|
*
|
|
24
44
|
* The path to the Draco decoder.
|
|
@@ -34,19 +54,29 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
34
54
|
path: string;
|
|
35
55
|
draco?: boolean | undefined;
|
|
36
56
|
decoderPath?: string | undefined;
|
|
57
|
+
castShadow?: boolean | undefined;
|
|
58
|
+
receiveShadow?: boolean | undefined;
|
|
37
59
|
}>, {
|
|
38
60
|
draco: boolean;
|
|
61
|
+
castShadow: boolean;
|
|
62
|
+
receiveShadow: boolean;
|
|
39
63
|
decoderPath: string;
|
|
40
64
|
}>, {
|
|
41
65
|
value: import("vue").Ref<any>;
|
|
42
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
66
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
43
67
|
path: string;
|
|
44
68
|
draco?: boolean | undefined;
|
|
45
69
|
decoderPath?: string | undefined;
|
|
70
|
+
castShadow?: boolean | undefined;
|
|
71
|
+
receiveShadow?: boolean | undefined;
|
|
46
72
|
}>, {
|
|
47
73
|
draco: boolean;
|
|
74
|
+
castShadow: boolean;
|
|
75
|
+
receiveShadow: boolean;
|
|
48
76
|
decoderPath: string;
|
|
49
77
|
}>>>, {
|
|
78
|
+
castShadow: boolean;
|
|
79
|
+
receiveShadow: boolean;
|
|
50
80
|
draco: boolean;
|
|
51
81
|
decoderPath: string;
|
|
52
82
|
}, {}>;
|
|
@@ -33,4 +33,4 @@ export interface GLTFResult {
|
|
|
33
33
|
* @param {(loader: GLTFLoader) => void} [extendLoader]
|
|
34
34
|
* @return {*} {Promise<GLTFResult>}
|
|
35
35
|
*/
|
|
36
|
-
export declare function useGLTF
|
|
36
|
+
export declare function useGLTF<T extends string | string[]>(path: T, options?: GLTFLoaderOptions, extendLoader?: (loader: GLTFLoader) => void): Promise<T extends string[] ? GLTFResult[] : GLTFResult>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Mesh, Scene, WebGLRenderTarget, Camera } from 'three';
|
|
2
|
+
import { ConvolutionMaterial } from './convolutionMaterial';
|
|
3
|
+
export interface BlurPassProps {
|
|
4
|
+
resolution: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
minDepthThreshold?: number;
|
|
8
|
+
maxDepthThreshold?: number;
|
|
9
|
+
depthScale?: number;
|
|
10
|
+
depthToBlurRatioBias?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class BlurPass {
|
|
13
|
+
readonly renderTargetA: WebGLRenderTarget;
|
|
14
|
+
readonly renderTargetB: WebGLRenderTarget;
|
|
15
|
+
readonly convolutionMaterial: ConvolutionMaterial;
|
|
16
|
+
readonly scene: Scene;
|
|
17
|
+
readonly camera: Camera;
|
|
18
|
+
readonly screen: Mesh;
|
|
19
|
+
renderToScreen: boolean;
|
|
20
|
+
constructor({ resolution, width, height, minDepthThreshold, maxDepthThreshold, depthScale, depthToBlurRatioBias, }: BlurPassProps);
|
|
21
|
+
render(renderer: any, inputBuffer: any, outputBuffer: any): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ShaderMaterial, Vector2 } from 'three';
|
|
2
|
+
export declare class ConvolutionMaterial extends ShaderMaterial {
|
|
3
|
+
readonly kernel: Float32Array;
|
|
4
|
+
constructor(texelSize?: Vector2);
|
|
5
|
+
setTexelSize(x: number, y: number): void;
|
|
6
|
+
setResolution(resolution: Vector2): void;
|
|
7
|
+
}
|
|
@@ -8,8 +8,8 @@ interface CustomShaderMaterialProps {
|
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<CustomShaderMaterialProps>, {
|
|
11
|
-
value: import("vue").
|
|
12
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
11
|
+
value: import("vue").ShallowRef<null>;
|
|
12
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<CustomShaderMaterialProps>>>, {}, {}>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
15
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import MeshWobbleMaterial from './meshWobbleMaterial/index.vue';
|
|
2
2
|
import MeshGlassMaterial from './meshGlassMaterial/index.vue';
|
|
3
3
|
import CustomShaderMaterial from './customShaderMaterial/index.vue';
|
|
4
|
-
|
|
4
|
+
import MeshReflectionMaterial from './meshReflectionMaterial/index.vue';
|
|
5
|
+
export { MeshWobbleMaterial, MeshGlassMaterial, CustomShaderMaterial, MeshReflectionMaterial };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
MeshGlassMaterialClass: import("vue").ShallowRef<any>;
|
|
3
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
3
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { Texture, MeshStandardMaterial } from 'three';
|
|
2
|
+
export interface MeshReflectorMaterialProps extends /* @vue-ignore */ MeshStandardMaterial {
|
|
3
|
+
resolution?: number;
|
|
4
|
+
mixBlur?: number;
|
|
5
|
+
mixStrength?: number;
|
|
6
|
+
blur?: [number, number] | number;
|
|
7
|
+
mirror?: number;
|
|
8
|
+
minDepthThreshold?: number;
|
|
9
|
+
maxDepthThreshold?: number;
|
|
10
|
+
depthScale?: number;
|
|
11
|
+
depthToBlurRatioBias?: number;
|
|
12
|
+
distortionMap?: Texture;
|
|
13
|
+
distortion?: number;
|
|
14
|
+
mixContrast?: number;
|
|
15
|
+
reflectorOffset?: number;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MeshReflectorMaterialProps>, {
|
|
18
|
+
mixBlur: number;
|
|
19
|
+
mixStrength: number;
|
|
20
|
+
resolution: number;
|
|
21
|
+
blur: () => number[];
|
|
22
|
+
minDepthThreshold: number;
|
|
23
|
+
maxDepthThreshold: number;
|
|
24
|
+
depthScale: number;
|
|
25
|
+
depthToBlurRatioBias: number;
|
|
26
|
+
mirror: number;
|
|
27
|
+
distortion: number;
|
|
28
|
+
mixContrast: number;
|
|
29
|
+
reflectorOffset: number;
|
|
30
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MeshReflectorMaterialProps>, {
|
|
31
|
+
mixBlur: number;
|
|
32
|
+
mixStrength: number;
|
|
33
|
+
resolution: number;
|
|
34
|
+
blur: () => number[];
|
|
35
|
+
minDepthThreshold: number;
|
|
36
|
+
maxDepthThreshold: number;
|
|
37
|
+
depthScale: number;
|
|
38
|
+
depthToBlurRatioBias: number;
|
|
39
|
+
mirror: number;
|
|
40
|
+
distortion: number;
|
|
41
|
+
mixContrast: number;
|
|
42
|
+
reflectorOffset: number;
|
|
43
|
+
}>>>, {
|
|
44
|
+
blur: number | [number, number];
|
|
45
|
+
resolution: number;
|
|
46
|
+
minDepthThreshold: number;
|
|
47
|
+
maxDepthThreshold: number;
|
|
48
|
+
depthScale: number;
|
|
49
|
+
depthToBlurRatioBias: number;
|
|
50
|
+
mixBlur: number;
|
|
51
|
+
mixStrength: number;
|
|
52
|
+
mirror: number;
|
|
53
|
+
distortion: number;
|
|
54
|
+
mixContrast: number;
|
|
55
|
+
reflectorOffset: number;
|
|
56
|
+
}, {}>;
|
|
57
|
+
export default _default;
|
|
58
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
59
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
60
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
61
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
62
|
+
} : {
|
|
63
|
+
type: import('vue').PropType<T[K]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
type __VLS_WithDefaults<P, D> = {
|
|
68
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
69
|
+
default: D[K];
|
|
70
|
+
}> : P[K];
|
|
71
|
+
};
|
|
72
|
+
type __VLS_Prettify<T> = {
|
|
73
|
+
[K in keyof T]: T[K];
|
|
74
|
+
} & {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Matrix4, Texture } from 'three';
|
|
2
|
+
import { MeshStandardMaterial } from 'three';
|
|
3
|
+
export declare class MeshReflectorMaterial extends MeshStandardMaterial {
|
|
4
|
+
private _tDepth;
|
|
5
|
+
private _distortionMap;
|
|
6
|
+
private _tDiffuse;
|
|
7
|
+
private _tDiffuseBlur;
|
|
8
|
+
private _textureMatrix;
|
|
9
|
+
private _hasBlur;
|
|
10
|
+
private _mirror;
|
|
11
|
+
private _mixBlur;
|
|
12
|
+
private _blurStrength;
|
|
13
|
+
private _minDepthThreshold;
|
|
14
|
+
private _maxDepthThreshold;
|
|
15
|
+
private _depthScale;
|
|
16
|
+
private _depthToBlurRatioBias;
|
|
17
|
+
private _distortion;
|
|
18
|
+
private _mixContrast;
|
|
19
|
+
constructor(parameters?: {});
|
|
20
|
+
onBeforeCompile(shader: any): void;
|
|
21
|
+
get tDiffuse(): Texture | null;
|
|
22
|
+
set tDiffuse(v: Texture | null);
|
|
23
|
+
get tDepth(): Texture | null;
|
|
24
|
+
set tDepth(v: Texture | null);
|
|
25
|
+
get distortionMap(): Texture | null;
|
|
26
|
+
set distortionMap(v: Texture | null);
|
|
27
|
+
get tDiffuseBlur(): Texture | null;
|
|
28
|
+
set tDiffuseBlur(v: Texture | null);
|
|
29
|
+
get textureMatrix(): Matrix4 | null;
|
|
30
|
+
set textureMatrix(v: Matrix4 | null);
|
|
31
|
+
get hasBlur(): boolean;
|
|
32
|
+
set hasBlur(v: boolean);
|
|
33
|
+
get mirror(): number;
|
|
34
|
+
set mirror(v: number);
|
|
35
|
+
get mixBlur(): number;
|
|
36
|
+
set mixBlur(v: number);
|
|
37
|
+
get mixStrength(): number;
|
|
38
|
+
set mixStrength(v: number);
|
|
39
|
+
get minDepthThreshold(): number;
|
|
40
|
+
set minDepthThreshold(v: number);
|
|
41
|
+
get maxDepthThreshold(): number;
|
|
42
|
+
set maxDepthThreshold(v: number);
|
|
43
|
+
get depthScale(): number;
|
|
44
|
+
set depthScale(v: number);
|
|
45
|
+
get depthToBlurRatioBias(): number;
|
|
46
|
+
set depthToBlurRatioBias(v: number);
|
|
47
|
+
get distortion(): number;
|
|
48
|
+
set distortion(v: number);
|
|
49
|
+
get mixContrast(): number;
|
|
50
|
+
set mixContrast(v: number);
|
|
51
|
+
}
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
4
4
|
}>, {
|
|
5
5
|
speed: number;
|
|
6
6
|
factor: number;
|
|
7
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
7
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
8
|
speed?: number | undefined;
|
|
9
9
|
factor?: number | undefined;
|
|
10
10
|
}>, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BakeShadows: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -3,7 +3,7 @@ export declare const Stats: import("vue").DefineComponent<{
|
|
|
3
3
|
type: NumberConstructor;
|
|
4
4
|
default: number;
|
|
5
5
|
};
|
|
6
|
-
},
|
|
6
|
+
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
showPanel: {
|
|
8
8
|
type: NumberConstructor;
|
|
9
9
|
default: number;
|
|
@@ -7,4 +7,4 @@ export interface StatsGlProps {
|
|
|
7
7
|
minimal?: boolean;
|
|
8
8
|
mode?: number;
|
|
9
9
|
}
|
|
10
|
-
export declare const StatsGl: import("vue").DefineComponent<StatsGlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
10
|
+
export declare const StatsGl: import("vue").DefineComponent<StatsGlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StatsGlProps>, {}, {}>;
|
|
@@ -29,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
29
|
sprite: boolean;
|
|
30
30
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
31
|
onOcclude: (...args: any[]) => void;
|
|
32
|
-
}, string, import("vue").
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HTMLProps>, {
|
|
33
33
|
geometry: PlaneGeometry;
|
|
34
34
|
zIndexRange: () => number[];
|
|
35
35
|
as: string;
|
|
@@ -47,7 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
47
|
eps: number;
|
|
48
48
|
pointerEvents: PointerEventsProperties;
|
|
49
49
|
zIndexRange: number[];
|
|
50
|
-
}, {}>, Readonly<Record<string, any
|
|
50
|
+
}, {}>, Readonly<Record<string, any>> & Record<string, any>>;
|
|
51
51
|
export default _default;
|
|
52
52
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
53
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { useTweakPane } from './useTweakPane';
|
|
2
2
|
import { Stats } from './Stats';
|
|
3
3
|
import { StatsGl } from './StatsGl';
|
|
4
|
+
import { BakeShadows } from './BakeShadows';
|
|
4
5
|
import Html from './html/HTML.vue';
|
|
5
|
-
|
|
6
|
+
import { useGLTFExporter } from './useGLTFExporter';
|
|
7
|
+
export { useTweakPane, Html, Stats, StatsGl, BakeShadows, useGLTFExporter };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AnimationClip, Object3D } from 'three';
|
|
2
|
+
interface gltfExporterOptions {
|
|
3
|
+
fileName?: string;
|
|
4
|
+
trs?: boolean;
|
|
5
|
+
onlyVisible?: boolean;
|
|
6
|
+
binary?: boolean;
|
|
7
|
+
maxTextureSize?: number;
|
|
8
|
+
animations?: AnimationClip[];
|
|
9
|
+
includeCustomExtensions?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function useGLTFExporter(object3D: Object3D | Object3D[], options?: gltfExporterOptions): Promise<void>;
|
|
12
|
+
export {};
|
|
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
24
|
color: string;
|
|
25
25
|
}>, {
|
|
26
26
|
value: import("vue").ShallowRef<any>;
|
|
27
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
|
|
28
28
|
args: () => number[];
|
|
29
29
|
color: string;
|
|
30
30
|
}>>>, {
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
24
24
|
closed: boolean;
|
|
25
25
|
curveType: string;
|
|
26
26
|
tension: number;
|
|
27
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
27
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CatmullRomCurve3Props>, {
|
|
28
28
|
segments: number;
|
|
29
29
|
closed: boolean;
|
|
30
30
|
curveType: string;
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
color: string;
|
|
24
24
|
}>, {
|
|
25
25
|
value: import("vue").ShallowRef<any>;
|
|
26
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CircleProps>, {
|
|
27
27
|
args: () => number[];
|
|
28
28
|
color: string;
|
|
29
29
|
}>>>, {
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
color: string;
|
|
24
24
|
}>, {
|
|
25
25
|
value: import("vue").ShallowRef<any>;
|
|
26
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ConeProps>, {
|
|
27
27
|
args: () => (number | boolean)[];
|
|
28
28
|
color: string;
|
|
29
29
|
}>>>, {
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
color: string;
|
|
24
24
|
}>, {
|
|
25
25
|
value: import("vue").ShallowRef<any>;
|
|
26
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DodecahedronProps>, {
|
|
27
27
|
args: () => number[];
|
|
28
28
|
color: string;
|
|
29
29
|
}>>>, {
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
color: string;
|
|
24
24
|
}>, {
|
|
25
25
|
value: import("vue").ShallowRef<any>;
|
|
26
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IcosahedronProps>, {
|
|
27
27
|
args: () => number[];
|
|
28
28
|
color: string;
|
|
29
29
|
}>>>, {
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
26
26
|
gapSize: number;
|
|
27
27
|
dashScale: number;
|
|
28
28
|
dashOffset: number;
|
|
29
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
29
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LineProps>, {
|
|
30
30
|
vertexColors: null;
|
|
31
31
|
color: string;
|
|
32
32
|
lineWidth: number;
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
color: string;
|
|
24
24
|
}>, {
|
|
25
25
|
value: import("vue").ShallowRef<any>;
|
|
26
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OctahedronProps>, {
|
|
27
27
|
args: () => number[];
|
|
28
28
|
color: string;
|
|
29
29
|
}>>>, {
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
color: string;
|
|
24
24
|
}>, {
|
|
25
25
|
value: import("vue").ShallowRef<any>;
|
|
26
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlaneProps>, {
|
|
27
27
|
args: () => number[];
|
|
28
28
|
color: string;
|
|
29
29
|
}>>>, {
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
color: string;
|
|
24
24
|
}>, {
|
|
25
25
|
value: import("vue").ShallowRef<any>;
|
|
26
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<RingProps>, {
|
|
27
27
|
args: () => number[];
|
|
28
28
|
color: string;
|
|
29
29
|
}>>>, {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { TresColor } from '@tresjs/core';
|
|
2
|
+
import type { BoxGeometry } from 'three';
|
|
3
|
+
export interface BoxProps {
|
|
4
|
+
/**
|
|
5
|
+
* The width, height, depth, segments and radius.
|
|
6
|
+
* @default [1, 1, 1, 2, 0.1]
|
|
7
|
+
* @type {number[]}
|
|
8
|
+
* @memberof BoxProps
|
|
9
|
+
* @see https://github.com/mrdoob/three.js/blob/master/examples/jsm/geometries/RoundedBoxGeometry.js
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
args?: ConstructorParameters<typeof BoxGeometry>;
|
|
13
|
+
/**
|
|
14
|
+
* The color of the box.
|
|
15
|
+
* @default 0xffffff
|
|
16
|
+
* @type {TresColor}
|
|
17
|
+
* @memberof BoxProps
|
|
18
|
+
* @see https://threejs.org/docs/#api/en/materials/MeshBasicMaterial
|
|
19
|
+
*/
|
|
20
|
+
color?: TresColor;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
|
|
23
|
+
args: () => number[];
|
|
24
|
+
color: string;
|
|
25
|
+
}>, {
|
|
26
|
+
value: import("vue").ShallowRef<any>;
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
|
|
28
|
+
args: () => number[];
|
|
29
|
+
color: string;
|
|
30
|
+
}>>>, {
|
|
31
|
+
color: import("three").ColorRepresentation | [r: number, g: number, b: number];
|
|
32
|
+
args: [width?: number | undefined, height?: number | undefined, depth?: number | undefined, widthSegments?: number | undefined, heightSegments?: number | undefined, depthSegments?: number | undefined];
|
|
33
|
+
}, {}>, {
|
|
34
|
+
default?(_: {}): any;
|
|
35
|
+
}>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
39
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
+
} : {
|
|
42
|
+
type: import('vue').PropType<T[K]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type __VLS_WithDefaults<P, D> = {
|
|
47
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
48
|
+
default: D[K];
|
|
49
|
+
}> : P[K];
|
|
50
|
+
};
|
|
51
|
+
type __VLS_Prettify<T> = {
|
|
52
|
+
[K in keyof T]: T[K];
|
|
53
|
+
} & {};
|
|
54
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
24
|
color: string;
|
|
25
25
|
}>, {
|
|
26
26
|
value: import("vue").ShallowRef<any>;
|
|
27
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SphereProps>, {
|
|
28
28
|
args: () => number[];
|
|
29
29
|
color: string;
|
|
30
30
|
}>>>, {
|
|
@@ -41,7 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
41
41
|
color: string;
|
|
42
42
|
}>, {
|
|
43
43
|
value: import("vue").ShallowRef<any>;
|
|
44
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
44
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SuperFormulaProps>, {
|
|
45
45
|
widthSegments: number;
|
|
46
46
|
heightSegments: number;
|
|
47
47
|
numArmsA: number;
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
color: string;
|
|
24
24
|
}>, {
|
|
25
25
|
value: import("vue").ShallowRef<any>;
|
|
26
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TetrahedronProps>, {
|
|
27
27
|
args: () => number[];
|
|
28
28
|
color: string;
|
|
29
29
|
}>>>, {
|