@tresjs/cientos 3.6.0 → 3.8.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 +52 -14
- 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 +107 -0
- package/dist/core/abstractions/Text3D.vue.d.ts +2 -2
- package/dist/core/abstractions/index.d.ts +4 -1
- package/dist/core/abstractions/useFBO/component.vue.d.ts +1 -1
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +21 -0
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +620 -0
- package/dist/core/controls/CameraControls.vue.d.ts +959 -1034
- 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 +893 -963
- package/dist/core/controls/PointerLockControls.vue.d.ts +3 -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 +1 -1
- 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 +3 -3
- 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/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/staging/Backdrop.vue.d.ts +1 -1
- package/dist/core/staging/Precipitation.vue.d.ts +2 -2
- package/dist/core/staging/Sky.vue.d.ts +23 -1
- package/dist/core/staging/Smoke.vue.d.ts +1 -1
- package/dist/core/staging/Sparkles/component.vue.d.ts +3 -3
- package/dist/core/staging/Stars.vue.d.ts +3 -3
- package/dist/trescientos.js +7769 -5714
- package/dist/trescientos.umd.cjs +302 -114
- package/dist/utils/constants.d.ts +1 -0
- package/package.json +26 -26
|
@@ -120,7 +120,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
120
120
|
depthWrite: boolean;
|
|
121
121
|
transparent: boolean;
|
|
122
122
|
sizeAttenuation: boolean;
|
|
123
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
123
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PrecipitationProps>, {
|
|
124
124
|
size: number;
|
|
125
125
|
area: () => number[];
|
|
126
126
|
color: number;
|
|
@@ -139,9 +139,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
139
139
|
depthWrite: boolean;
|
|
140
140
|
opacity: number;
|
|
141
141
|
transparent: boolean;
|
|
142
|
+
count: number;
|
|
142
143
|
size: number;
|
|
143
144
|
area: [number, number, number];
|
|
144
|
-
count: number;
|
|
145
145
|
randomness: number;
|
|
146
146
|
sizeAttenuation: boolean;
|
|
147
147
|
}, {}>;
|
|
@@ -1,10 +1,32 @@
|
|
|
1
1
|
export interface SkyProps {
|
|
2
|
+
/**
|
|
3
|
+
* Haziness
|
|
4
|
+
* @param {number} turbidity
|
|
5
|
+
*/
|
|
2
6
|
turbidity?: number;
|
|
7
|
+
/**
|
|
8
|
+
* [Rayleigh scattering](https://en.wikipedia.org/wiki/Rayleigh_scattering)
|
|
9
|
+
*/
|
|
3
10
|
rayleigh?: number;
|
|
11
|
+
/**
|
|
12
|
+
* [Mie scattering](https://en.wikipedia.org/wiki/Mie_scattering) amount
|
|
13
|
+
*/
|
|
4
14
|
mieCoefficient?: number;
|
|
15
|
+
/**
|
|
16
|
+
* [Mie scattering](https://en.wikipedia.org/wiki/Mie_scattering) direction
|
|
17
|
+
*/
|
|
5
18
|
mieDirectionalG?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Sun's elevation from the horizon, in degrees
|
|
21
|
+
*/
|
|
6
22
|
elevation?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Sun's [azimuth angle](https://en.wikipedia.org/wiki/Solar_azimuth_angle), in degrees – its horizontal coordinate on the horizon
|
|
25
|
+
*/
|
|
7
26
|
azimuth?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Sky box scale
|
|
29
|
+
*/
|
|
8
30
|
distance?: number;
|
|
9
31
|
}
|
|
10
32
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SkyProps>, {
|
|
@@ -15,7 +37,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
37
|
elevation: number;
|
|
16
38
|
azimuth: number;
|
|
17
39
|
distance: number;
|
|
18
|
-
}>, {}, 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<SkyProps>, {
|
|
19
41
|
turbidity: number;
|
|
20
42
|
rayleigh: number;
|
|
21
43
|
mieCoefficient: number;
|
|
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
76
76
|
depthTest: boolean;
|
|
77
77
|
}>, {
|
|
78
78
|
value: import("vue").ShallowRef<any>;
|
|
79
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
79
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SmokeProps>, {
|
|
80
80
|
opacity: number;
|
|
81
81
|
speed: number;
|
|
82
82
|
width: number;
|
|
@@ -164,7 +164,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
164
164
|
blending: 2;
|
|
165
165
|
transparent: boolean;
|
|
166
166
|
depthWrite: boolean;
|
|
167
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
167
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SparkleProps>, {
|
|
168
168
|
map: string;
|
|
169
169
|
geometry: undefined;
|
|
170
170
|
directionalLight: undefined;
|
|
@@ -214,8 +214,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
214
214
|
surfaceDistance: number;
|
|
215
215
|
sequenceColor: Gradient<import("three").ColorRepresentation | [r: number, g: number, b: number]>;
|
|
216
216
|
sequenceAlpha: Gradient<number>;
|
|
217
|
-
sequenceOffset:
|
|
218
|
-
sequenceNoise:
|
|
217
|
+
sequenceOffset: any;
|
|
218
|
+
sequenceNoise: any;
|
|
219
219
|
sequenceSize: Gradient<number>;
|
|
220
220
|
sequenceSurfaceDistance: Gradient<number>;
|
|
221
221
|
mixColor: number;
|
|
@@ -75,7 +75,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
75
75
|
radius: number;
|
|
76
76
|
}>, {
|
|
77
77
|
value: import("vue").ShallowRef<any>;
|
|
78
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
78
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<StarsProps>, {
|
|
79
79
|
size: number;
|
|
80
80
|
sizeAttenuation: boolean;
|
|
81
81
|
transparent: boolean;
|
|
@@ -87,11 +87,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
87
87
|
}>>>, {
|
|
88
88
|
alphaTest: number;
|
|
89
89
|
transparent: boolean;
|
|
90
|
+
count: number;
|
|
91
|
+
radius: number;
|
|
90
92
|
size: number;
|
|
91
93
|
depth: number;
|
|
92
94
|
alphaMap: null;
|
|
93
|
-
count: number;
|
|
94
|
-
radius: number;
|
|
95
95
|
sizeAttenuation: boolean;
|
|
96
96
|
}, {}>;
|
|
97
97
|
export default _default;
|