@tresjs/cientos 4.0.0-next.0 → 4.0.0-next.1
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/dist/composables/useOnDemandInvalidation.d.ts +3 -0
- package/dist/core/abstractions/AnimatedSprite/Atlas.d.ts +38 -0
- package/dist/core/abstractions/AnimatedSprite/AtlasAnimationDefinitionParser.d.ts +10 -0
- package/dist/core/abstractions/AnimatedSprite/StringOps.d.ts +2 -0
- package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +130 -0
- package/dist/core/abstractions/GlobalAudio.d.ts +1 -1
- package/dist/core/abstractions/Lensflare/RandUtils.d.ts +2 -2
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +13 -12
- package/dist/core/abstractions/Lensflare/constants.d.ts +2 -1
- package/dist/core/abstractions/Lensflare/index.d.ts +5 -4
- package/dist/core/abstractions/Levioso.vue.d.ts +16 -14
- package/dist/core/abstractions/MouseParallax.vue.d.ts +22 -11
- package/dist/core/abstractions/PositionalAudio.vue.d.ts +69 -0
- package/dist/core/abstractions/Reflector.vue.d.ts +12 -9
- package/dist/core/abstractions/Text3D.vue.d.ts +8 -6
- package/dist/core/abstractions/index.d.ts +11 -8
- package/dist/core/abstractions/useAnimations.d.ts +4 -4
- package/dist/core/abstractions/useFBO/component.vue.d.ts +6 -5
- package/dist/core/abstractions/useFBO/index.d.ts +5 -5
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +8 -5
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +167 -139
- package/dist/core/controls/CameraControls.vue.d.ts +4135 -3850
- package/dist/core/controls/KeyboardControls.vue.d.ts +44 -90
- package/dist/core/controls/MapControls.vue.d.ts +9498 -4
- package/dist/core/controls/OrbitControls.vue.d.ts +5897 -5651
- package/dist/core/controls/PointerLockControls.vue.d.ts +6 -5
- package/dist/core/controls/ScrollControls.vue.d.ts +25 -21
- package/dist/core/controls/TransformControls.vue.d.ts +11 -5
- package/dist/core/controls/index.d.ts +9 -8
- package/dist/core/index.d.ts +0 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +14 -13
- package/dist/core/loaders/index.d.ts +4 -3
- package/dist/core/loaders/useFBX/component.vue.d.ts +9 -9
- package/dist/core/loaders/useFBX/index.d.ts +2 -1
- package/dist/core/loaders/useGLTF/component.vue.d.ts +16 -16
- package/dist/core/loaders/useGLTF/index.d.ts +14 -9
- package/dist/core/loaders/useProgress.d.ts +2 -1
- package/dist/core/loaders/useVideoTexture.d.ts +1 -0
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +6 -4
- package/dist/core/materials/holographicMaterial/HolographicMaterialParameters.d.ts +41 -0
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +86 -0
- package/dist/core/materials/holographicMaterial/material.d.ts +27 -0
- package/dist/core/materials/index.d.ts +7 -5
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +3 -3
- package/dist/core/materials/meshGlassMaterial/material.d.ts +2 -2
- package/dist/core/materials/{blurPass.d.ts → meshReflectionMaterial/BlurPass.d.ts} +8 -6
- package/dist/core/materials/{convolutionMaterial.d.ts → meshReflectionMaterial/ConvolutionMaterial.d.ts} +1 -0
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +171 -40
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +33 -36
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +8 -6
- package/dist/core/materials/meshWobbleMaterial/material.d.ts +2 -2
- package/dist/core/misc/BakeShadows.d.ts +1 -1
- package/dist/core/misc/Stats.d.ts +2 -2
- package/dist/core/misc/StatsGl.d.ts +1 -1
- package/dist/core/misc/html/HTML.vue.d.ts +13 -8
- package/dist/core/misc/html/utils.d.ts +3 -3
- package/dist/core/misc/index.d.ts +3 -3
- package/dist/core/misc/useGLTFExporter.d.ts +2 -1
- package/dist/core/shapes/Box.vue.d.ts +13 -10
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +6 -3
- package/dist/core/shapes/Circle.vue.d.ts +13 -10
- package/dist/core/shapes/Cone.vue.d.ts +13 -10
- package/dist/core/shapes/Cylinder.vue.d.ts +60 -0
- package/dist/core/shapes/Dodecahedron.vue.d.ts +13 -10
- package/dist/core/shapes/Icosahedron.vue.d.ts +13 -10
- package/dist/core/shapes/Line2.vue.d.ts +7 -4
- package/dist/core/shapes/Octahedron.vue.d.ts +13 -10
- package/dist/core/shapes/Plane.vue.d.ts +13 -10
- package/dist/core/shapes/Ring.vue.d.ts +13 -10
- package/dist/core/shapes/RoundedBox.vue.d.ts +13 -10
- package/dist/core/shapes/Sphere.vue.d.ts +13 -10
- package/dist/core/shapes/Superformula.vue.d.ts +26 -23
- package/dist/core/shapes/Tetrahedron.vue.d.ts +13 -10
- package/dist/core/shapes/Torus.vue.d.ts +13 -10
- package/dist/core/shapes/TorusKnot.vue.d.ts +13 -10
- package/dist/core/shapes/Tube.vue.d.ts +13 -11
- package/dist/core/shapes/index.d.ts +20 -18
- package/dist/core/staging/Backdrop.vue.d.ts +9 -5
- package/dist/core/staging/ContactShadows.vue.d.ts +173 -0
- package/dist/core/staging/Fit.vue.d.ts +59 -0
- package/dist/core/staging/Ocean.vue.d.ts +15 -12
- package/dist/core/staging/Precipitation.vue.d.ts +10 -7
- package/dist/core/staging/Sky.vue.d.ts +5 -4
- package/dist/core/staging/Smoke.vue.d.ts +7 -6
- package/dist/core/staging/Sparkles/ShaderData.d.ts +4 -3
- package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +7 -7
- package/dist/core/staging/Sparkles/component.vue.d.ts +21 -19
- package/dist/core/staging/Sparkles/useEmptyDataTexture.d.ts +1 -0
- package/dist/core/staging/Stars.vue.d.ts +7 -7
- package/dist/core/staging/index.d.ts +13 -10
- package/dist/core/staging/useEnvironment/component.vue.d.ts +64 -0
- package/dist/core/staging/useEnvironment/const.d.ts +28 -0
- package/dist/core/staging/useEnvironment/envSence.d.ts +9 -0
- package/dist/core/staging/useEnvironment/index.d.ts +5 -3
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +56 -0
- package/dist/trescientos.js +7493 -6606
- package/dist/trescientos.umd.cjs +562 -424
- package/dist/utils/Gradient.d.ts +3 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/types.d.ts +4 -0
- package/package.json +28 -28
- package/dist/core/directives/index.d.ts +0 -5
- package/dist/core/directives/vAlwaysLookAt.d.ts +0 -4
- package/dist/core/directives/vDistanceTo.d.ts +0 -4
- package/dist/core/directives/vLightHelper.d.ts +0 -5
- package/dist/core/directives/vLog.d.ts +0 -3
- package/dist/core/misc/useTweakPane/index.d.ts +0 -10
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Holographic material by Anderson Mancini - Dec 2023.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
|
|
6
|
+
MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2023 Anderson Mancini
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import MeshWobbleMaterial from './meshWobbleMaterial/index.vue';
|
|
2
|
-
import MeshGlassMaterial from './meshGlassMaterial/index.vue';
|
|
3
|
-
import CustomShaderMaterial from './customShaderMaterial/index.vue';
|
|
4
|
-
import MeshReflectionMaterial from './meshReflectionMaterial/index.vue';
|
|
5
|
-
|
|
1
|
+
import { default as MeshWobbleMaterial } from './meshWobbleMaterial/index.vue';
|
|
2
|
+
import { default as MeshGlassMaterial } from './meshGlassMaterial/index.vue';
|
|
3
|
+
import { default as CustomShaderMaterial } from './customShaderMaterial/index.vue';
|
|
4
|
+
import { default as MeshReflectionMaterial } from './meshReflectionMaterial/index.vue';
|
|
5
|
+
import { default as HolographicMaterial } from './holographicMaterial/index.vue';
|
|
6
|
+
|
|
7
|
+
export { MeshWobbleMaterial, MeshGlassMaterial, CustomShaderMaterial, MeshReflectionMaterial, HolographicMaterial };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import(
|
|
2
|
-
|
|
3
|
-
}, {}, {}, {}, import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
instance: import('vue').ShallowRef<any>;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MeshStandardMaterial } from 'three';
|
|
1
|
+
import { MeshStandardMaterialParameters, MeshStandardMaterial } from 'three';
|
|
3
2
|
import { Vector2 } from 'three/src/math/Vector2.js';
|
|
4
3
|
import { Color } from 'three/src/math/Color.js';
|
|
4
|
+
|
|
5
5
|
declare class MeshGlassMaterial extends MeshStandardMaterial {
|
|
6
6
|
isMeshPhysicalMaterial: boolean;
|
|
7
7
|
clearcoatMap: null;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { Mesh, Scene, WebGLRenderTarget
|
|
2
|
-
import { ConvolutionMaterial } from './
|
|
1
|
+
import { Camera, Mesh, Scene, WebGLRenderTarget } from 'three';
|
|
2
|
+
import { ConvolutionMaterial } from './ConvolutionMaterial';
|
|
3
|
+
|
|
3
4
|
export interface BlurPassProps {
|
|
4
5
|
resolution: number;
|
|
5
6
|
width?: number;
|
|
6
7
|
height?: number;
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
depthEdge0?: number;
|
|
9
|
+
depthEdge1?: number;
|
|
9
10
|
depthScale?: number;
|
|
10
|
-
|
|
11
|
+
depthBias?: number;
|
|
11
12
|
}
|
|
12
13
|
export declare class BlurPass {
|
|
13
14
|
readonly renderTargetA: WebGLRenderTarget;
|
|
@@ -17,6 +18,7 @@ export declare class BlurPass {
|
|
|
17
18
|
readonly camera: Camera;
|
|
18
19
|
readonly screen: Mesh;
|
|
19
20
|
renderToScreen: boolean;
|
|
20
|
-
constructor({ resolution, width, height,
|
|
21
|
+
constructor({ resolution, width, height, depthEdge0, depthEdge1, depthScale, depthBias, }: BlurPassProps);
|
|
21
22
|
render(renderer: any, inputBuffer: any, outputBuffer: any): void;
|
|
23
|
+
dispose(): void;
|
|
22
24
|
}
|
|
@@ -1,58 +1,189 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { Texture, Color, Euler, Vector2 } from 'three';
|
|
2
|
+
import { TresColor } from '@tresjs/core';
|
|
3
|
+
|
|
4
|
+
export interface MeshReflectionMaterialProps {
|
|
5
|
+
/** Length in pixels of one side of the square reflective textures. */
|
|
3
6
|
resolution?: number;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
/** Overall strength of the reflection. */
|
|
8
|
+
mix?: number;
|
|
9
|
+
/** Strength of the sharp reflection on smooth surfaces. */
|
|
10
|
+
sharpMix?: number;
|
|
11
|
+
/** Sharp reflection can be faded out by depth – distance from the reflective surface. Performance note: if the value is greater than `0`, a depth texture will be created. */
|
|
12
|
+
sharpDepthScale?: number;
|
|
13
|
+
/** Sharp reflection depth falloff bias. */
|
|
14
|
+
sharpDepthBias?: number;
|
|
15
|
+
/** Sharp reflection depth falloff start. */
|
|
16
|
+
sharpDepthEdgeMin?: number;
|
|
17
|
+
/** Sharp reflection depth falloff end. */
|
|
18
|
+
sharpDepthEdgeMax?: number;
|
|
19
|
+
/** Strength of the blurred reflection on smooth surfaces. */
|
|
20
|
+
blurMixSmooth?: number;
|
|
21
|
+
/** Strength of the blurred reflection on rough surfaces. */
|
|
22
|
+
blurMixRough?: number;
|
|
23
|
+
/** Blurred reflection can spread out by depth – distance from the reflective surface. Performance note: if the value is greater than `0`, depth texture will be rendered. */
|
|
24
|
+
blurDepthScale?: number;
|
|
25
|
+
/** Blurred reflection depth spread bias. */
|
|
26
|
+
blurDepthBias?: number;
|
|
27
|
+
/** Blurred reflection depth spread start. */
|
|
28
|
+
blurDepthEdgeMin?: number;
|
|
29
|
+
/** Blurred reflection depth spread end. */
|
|
30
|
+
blurDepthEdgeMax?: number;
|
|
31
|
+
/** Size of the blur. If `[number, number]`, first number is width, second is height. Performance note: if other than `[0, 0]` or `0`, a blur texture will be rendered. */
|
|
32
|
+
blurSize?: [number, number] | number;
|
|
33
|
+
/** Texture for offsetting the reflection. */
|
|
12
34
|
distortionMap?: Texture;
|
|
35
|
+
/** Influence of `distortionMap`. */
|
|
13
36
|
distortion?: number;
|
|
14
|
-
|
|
37
|
+
/** Offsets the reflection. */
|
|
15
38
|
reflectorOffset?: number;
|
|
39
|
+
color?: TresColor;
|
|
40
|
+
roughness?: number;
|
|
41
|
+
metalness?: number;
|
|
42
|
+
map?: Texture;
|
|
43
|
+
lightMap?: Texture;
|
|
44
|
+
lightMapIntensity?: number;
|
|
45
|
+
aoMap?: Texture | null;
|
|
46
|
+
aoMapIntensity?: number;
|
|
47
|
+
emissive?: TresColor;
|
|
48
|
+
emissiveIntensity?: number;
|
|
49
|
+
emissiveMap?: Texture;
|
|
50
|
+
bumpMap?: Texture;
|
|
51
|
+
bumpScale?: number;
|
|
52
|
+
normalMap?: Texture;
|
|
53
|
+
normalMapType?: number;
|
|
54
|
+
normalScale?: Vector2;
|
|
55
|
+
displacementMap?: Texture;
|
|
56
|
+
displacementScale?: number;
|
|
57
|
+
displacementBias?: number;
|
|
58
|
+
roughnessMap?: Texture | null;
|
|
59
|
+
metalnessMap?: Texture | null;
|
|
60
|
+
alphaMap?: Texture | null;
|
|
61
|
+
envMap?: Texture | null;
|
|
62
|
+
envMapRotation?: Euler;
|
|
63
|
+
envMapIntensity?: number;
|
|
64
|
+
wireframe?: boolean;
|
|
65
|
+
wireframeLinewidth?: number;
|
|
66
|
+
wireframeLinecap?: string;
|
|
67
|
+
wireframeLinejoin?: string;
|
|
68
|
+
flatShading?: boolean;
|
|
69
|
+
fog?: boolean;
|
|
16
70
|
}
|
|
17
|
-
declare const _default: import(
|
|
18
|
-
mixBlur: number;
|
|
19
|
-
mixStrength: number;
|
|
71
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MeshReflectionMaterialProps>, {
|
|
20
72
|
resolution: number;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
73
|
+
mix: number;
|
|
74
|
+
sharpMix: number;
|
|
75
|
+
sharpDepthEdgeMin: number;
|
|
76
|
+
sharpDepthEdgeMax: number;
|
|
77
|
+
sharpDepthScale: number;
|
|
78
|
+
sharpDepthBias: number;
|
|
79
|
+
blurMixSmooth: number;
|
|
80
|
+
blurMixRough: number;
|
|
81
|
+
blurDepthEdgeMin: number;
|
|
82
|
+
blurDepthEdgeMax: number;
|
|
83
|
+
blurDepthScale: number;
|
|
84
|
+
blurDepthBias: number;
|
|
85
|
+
blurSize: () => number[];
|
|
27
86
|
distortion: number;
|
|
28
|
-
mixContrast: number;
|
|
29
87
|
reflectorOffset: number;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
88
|
+
color: () => Color;
|
|
89
|
+
roughness: number;
|
|
90
|
+
roughnessMap: null;
|
|
91
|
+
metalness: number;
|
|
92
|
+
lightMapIntensity: number;
|
|
93
|
+
aoMapIntensity: number;
|
|
94
|
+
emissive: () => Color;
|
|
95
|
+
emissiveIntensity: number;
|
|
96
|
+
bumpScale: number;
|
|
97
|
+
normalMapType: 0;
|
|
98
|
+
normalScale: () => Vector2;
|
|
99
|
+
displacementScale: number;
|
|
100
|
+
displacementBias: number;
|
|
101
|
+
envMapRotation: () => Euler;
|
|
102
|
+
envMapIntensity: number;
|
|
103
|
+
wireframe: boolean;
|
|
104
|
+
wireframeLinewidth: number;
|
|
105
|
+
wireframeLinecap: string;
|
|
106
|
+
wireframeLinejoin: string;
|
|
107
|
+
flatShading: boolean;
|
|
108
|
+
fog: boolean;
|
|
109
|
+
}>, {
|
|
110
|
+
instance: import('vue').ShallowRef<any>;
|
|
111
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MeshReflectionMaterialProps>, {
|
|
33
112
|
resolution: number;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
113
|
+
mix: number;
|
|
114
|
+
sharpMix: number;
|
|
115
|
+
sharpDepthEdgeMin: number;
|
|
116
|
+
sharpDepthEdgeMax: number;
|
|
117
|
+
sharpDepthScale: number;
|
|
118
|
+
sharpDepthBias: number;
|
|
119
|
+
blurMixSmooth: number;
|
|
120
|
+
blurMixRough: number;
|
|
121
|
+
blurDepthEdgeMin: number;
|
|
122
|
+
blurDepthEdgeMax: number;
|
|
123
|
+
blurDepthScale: number;
|
|
124
|
+
blurDepthBias: number;
|
|
125
|
+
blurSize: () => number[];
|
|
40
126
|
distortion: number;
|
|
41
|
-
mixContrast: number;
|
|
42
127
|
reflectorOffset: number;
|
|
128
|
+
color: () => Color;
|
|
129
|
+
roughness: number;
|
|
130
|
+
roughnessMap: null;
|
|
131
|
+
metalness: number;
|
|
132
|
+
lightMapIntensity: number;
|
|
133
|
+
aoMapIntensity: number;
|
|
134
|
+
emissive: () => Color;
|
|
135
|
+
emissiveIntensity: number;
|
|
136
|
+
bumpScale: number;
|
|
137
|
+
normalMapType: 0;
|
|
138
|
+
normalScale: () => Vector2;
|
|
139
|
+
displacementScale: number;
|
|
140
|
+
displacementBias: number;
|
|
141
|
+
envMapRotation: () => Euler;
|
|
142
|
+
envMapIntensity: number;
|
|
143
|
+
wireframe: boolean;
|
|
144
|
+
wireframeLinewidth: number;
|
|
145
|
+
wireframeLinecap: string;
|
|
146
|
+
wireframeLinejoin: string;
|
|
147
|
+
flatShading: boolean;
|
|
148
|
+
fog: boolean;
|
|
43
149
|
}>>>, {
|
|
44
|
-
|
|
150
|
+
color: TresColor;
|
|
151
|
+
fog: boolean;
|
|
152
|
+
lightMapIntensity: number;
|
|
153
|
+
aoMapIntensity: number;
|
|
154
|
+
envMapRotation: Euler;
|
|
155
|
+
wireframe: boolean;
|
|
156
|
+
wireframeLinewidth: number;
|
|
157
|
+
wireframeLinecap: string;
|
|
158
|
+
wireframeLinejoin: string;
|
|
45
159
|
resolution: number;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
160
|
+
mix: number;
|
|
161
|
+
sharpMix: number;
|
|
162
|
+
sharpDepthScale: number;
|
|
163
|
+
sharpDepthBias: number;
|
|
164
|
+
sharpDepthEdgeMin: number;
|
|
165
|
+
sharpDepthEdgeMax: number;
|
|
166
|
+
blurMixSmooth: number;
|
|
167
|
+
blurMixRough: number;
|
|
168
|
+
blurDepthScale: number;
|
|
169
|
+
blurDepthBias: number;
|
|
170
|
+
blurDepthEdgeMin: number;
|
|
171
|
+
blurDepthEdgeMax: number;
|
|
172
|
+
blurSize: [number, number] | number;
|
|
53
173
|
distortion: number;
|
|
54
|
-
mixContrast: number;
|
|
55
174
|
reflectorOffset: number;
|
|
175
|
+
roughness: number;
|
|
176
|
+
metalness: number;
|
|
177
|
+
emissive: TresColor;
|
|
178
|
+
emissiveIntensity: number;
|
|
179
|
+
bumpScale: number;
|
|
180
|
+
normalMapType: number;
|
|
181
|
+
normalScale: Vector2;
|
|
182
|
+
displacementScale: number;
|
|
183
|
+
displacementBias: number;
|
|
184
|
+
roughnessMap: Texture | null;
|
|
185
|
+
envMapIntensity: number;
|
|
186
|
+
flatShading: boolean;
|
|
56
187
|
}, {}>;
|
|
57
188
|
export default _default;
|
|
58
189
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,51 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export declare class
|
|
1
|
+
import { Matrix4, Texture, MeshStandardMaterial } from 'three';
|
|
2
|
+
|
|
3
|
+
export declare class MeshReflectionMaterial extends MeshStandardMaterial {
|
|
4
4
|
private _tDepth;
|
|
5
5
|
private _distortionMap;
|
|
6
|
-
private
|
|
7
|
-
private
|
|
6
|
+
private _tSharp;
|
|
7
|
+
private _tBlur;
|
|
8
8
|
private _textureMatrix;
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
9
|
+
private _mix;
|
|
10
|
+
private _sharpMix;
|
|
11
|
+
private _blurMixSmooth;
|
|
12
|
+
private _blurMixRough;
|
|
13
|
+
private _sharpDepthEdgeMin;
|
|
14
|
+
private _sharpDepthEdgeMax;
|
|
15
|
+
private _sharpDepthScale;
|
|
16
|
+
private _sharpDepthBias;
|
|
17
17
|
private _distortion;
|
|
18
|
-
private _mixContrast;
|
|
19
18
|
constructor(parameters?: {});
|
|
20
19
|
onBeforeCompile(shader: any): void;
|
|
21
|
-
get
|
|
22
|
-
set
|
|
20
|
+
get tSharp(): Texture | null;
|
|
21
|
+
set tSharp(v: Texture | null);
|
|
23
22
|
get tDepth(): Texture | null;
|
|
24
23
|
set tDepth(v: Texture | null);
|
|
25
24
|
get distortionMap(): Texture | null;
|
|
26
25
|
set distortionMap(v: Texture | null);
|
|
27
|
-
get
|
|
28
|
-
set
|
|
26
|
+
get tBlur(): Texture | null;
|
|
27
|
+
set tBlur(v: Texture | null);
|
|
29
28
|
get textureMatrix(): Matrix4 | null;
|
|
30
29
|
set textureMatrix(v: Matrix4 | null);
|
|
31
|
-
get
|
|
32
|
-
set
|
|
33
|
-
get
|
|
34
|
-
set
|
|
35
|
-
get
|
|
36
|
-
set
|
|
37
|
-
get
|
|
38
|
-
set
|
|
39
|
-
get
|
|
40
|
-
set
|
|
41
|
-
get
|
|
42
|
-
set
|
|
43
|
-
get
|
|
44
|
-
set
|
|
45
|
-
get
|
|
46
|
-
set
|
|
30
|
+
get sharpMix(): number;
|
|
31
|
+
set sharpMix(v: number);
|
|
32
|
+
get blurMixSmooth(): number;
|
|
33
|
+
set blurMixSmooth(v: number);
|
|
34
|
+
get blurMixRough(): number;
|
|
35
|
+
set blurMixRough(v: number);
|
|
36
|
+
get mix(): number;
|
|
37
|
+
set mix(v: number);
|
|
38
|
+
get sharpDepthScale(): number;
|
|
39
|
+
set sharpDepthScale(v: number);
|
|
40
|
+
get sharpDepthBias(): number;
|
|
41
|
+
set sharpDepthBias(v: number);
|
|
42
|
+
get sharpDepthEdgeMin(): number;
|
|
43
|
+
set sharpDepthEdgeMin(v: number);
|
|
44
|
+
get sharpDepthEdgeMax(): number;
|
|
45
|
+
set sharpDepthEdgeMax(v: number);
|
|
47
46
|
get distortion(): number;
|
|
48
47
|
set distortion(v: number);
|
|
49
|
-
get mixContrast(): number;
|
|
50
|
-
set mixContrast(v: number);
|
|
51
48
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
declare const _default: import(
|
|
2
|
-
speed?: number
|
|
3
|
-
factor?: number
|
|
1
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
speed?: number;
|
|
3
|
+
factor?: number;
|
|
4
4
|
}>, {
|
|
5
5
|
speed: number;
|
|
6
6
|
factor: number;
|
|
7
|
-
}>, {
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
}>, {
|
|
8
|
+
instance: import('vue').ShallowRef<any>;
|
|
9
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
speed?: number;
|
|
11
|
+
factor?: number;
|
|
10
12
|
}>, {
|
|
11
13
|
speed: number;
|
|
12
14
|
factor: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const BakeShadows: import(
|
|
1
|
+
export declare const BakeShadows: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const Stats: import(
|
|
1
|
+
export declare const Stats: import('vue').DefineComponent<{
|
|
2
2
|
showPanel: {
|
|
3
3
|
type: NumberConstructor;
|
|
4
4
|
default: number;
|
|
5
5
|
};
|
|
6
|
-
}, void, unknown, {}, {}, import(
|
|
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(
|
|
10
|
+
export declare const StatsGl: import('vue').DefineComponent<StatsGlProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StatsGlProps>, {}, {}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
2
|
import { PlaneGeometry } from 'three';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { TresObject3D } from '@tresjs/core';
|
|
4
|
+
import { Mutable } from '@vueuse/core';
|
|
5
|
+
|
|
5
6
|
export interface HTMLProps {
|
|
6
7
|
geometry?: any;
|
|
7
8
|
material?: any;
|
|
@@ -19,7 +20,8 @@ export interface HTMLProps {
|
|
|
19
20
|
occlude?: Ref<TresObject3D>[] | boolean | 'raycast' | 'blending';
|
|
20
21
|
}
|
|
21
22
|
type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
|
|
22
|
-
declare
|
|
23
|
+
declare function __VLS_template(): Readonly<Record<string, any>> & Record<string, any>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HTMLProps>, {
|
|
23
25
|
geometry: PlaneGeometry;
|
|
24
26
|
zIndexRange: () => number[];
|
|
25
27
|
as: string;
|
|
@@ -27,9 +29,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
29
|
eps: number;
|
|
28
30
|
pointerEvents: string;
|
|
29
31
|
sprite: boolean;
|
|
30
|
-
}>, {
|
|
32
|
+
}>, {
|
|
33
|
+
instance: Ref<TresObject3D | undefined>;
|
|
34
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
35
|
onOcclude: (...args: any[]) => void;
|
|
32
|
-
}, string, import(
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HTMLProps>, {
|
|
33
37
|
geometry: PlaneGeometry;
|
|
34
38
|
zIndexRange: () => number[];
|
|
35
39
|
as: string;
|
|
@@ -46,8 +50,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
50
|
as: string;
|
|
47
51
|
eps: number;
|
|
48
52
|
pointerEvents: PointerEventsProperties;
|
|
49
|
-
zIndexRange: number
|
|
50
|
-
}, {}
|
|
53
|
+
zIndexRange: Array<number>;
|
|
54
|
+
}, {}>;
|
|
55
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
51
56
|
export default _default;
|
|
52
57
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
58
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { TresCamera, TresObject3D } from '@tresjs/core';
|
|
2
|
+
import { Matrix4, Raycaster, Vector3 } from 'three';
|
|
3
|
+
|
|
4
4
|
export declare const v1: Vector3;
|
|
5
5
|
export declare const v2: Vector3;
|
|
6
6
|
export declare const v3: Vector3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useTweakPane } from './useTweakPane';
|
|
2
1
|
import { Stats } from './Stats';
|
|
3
2
|
import { StatsGl } from './StatsGl';
|
|
4
3
|
import { BakeShadows } from './BakeShadows';
|
|
5
|
-
import Html from './html/HTML.vue';
|
|
4
|
+
import { default as Html } from './html/HTML.vue';
|
|
6
5
|
import { useGLTFExporter } from './useGLTFExporter';
|
|
7
|
-
|
|
6
|
+
|
|
7
|
+
export { Html, Stats, StatsGl, BakeShadows, useGLTFExporter };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
import { BoxGeometry } from 'three';
|
|
3
|
+
|
|
3
4
|
export interface BoxProps {
|
|
4
5
|
/**
|
|
5
6
|
* The width, height and depth of the box.
|
|
@@ -19,20 +20,22 @@ export interface BoxProps {
|
|
|
19
20
|
*/
|
|
20
21
|
color?: TresColor;
|
|
21
22
|
}
|
|
22
|
-
declare
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
|
|
23
27
|
args: () => number[];
|
|
24
28
|
color: string;
|
|
25
29
|
}>, {
|
|
26
|
-
|
|
27
|
-
}, unknown, {}, {}, import(
|
|
30
|
+
instance: import('vue').ShallowRef<any>;
|
|
31
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
|
|
28
32
|
args: () => number[];
|
|
29
33
|
color: string;
|
|
30
34
|
}>>>, {
|
|
31
|
-
color:
|
|
32
|
-
args:
|
|
33
|
-
}, {}
|
|
34
|
-
|
|
35
|
-
}>;
|
|
35
|
+
color: TresColor;
|
|
36
|
+
args: ConstructorParameters<typeof BoxGeometry>;
|
|
37
|
+
}, {}>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
36
39
|
export default _default;
|
|
37
40
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
41
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
2
|
import { Vector3 } from 'three';
|
|
3
|
+
|
|
3
4
|
type CurveType = 'centripetal' | 'chordal' | 'catmullrom';
|
|
4
5
|
type Points = Array<Vector3 | [number, number, number]>;
|
|
5
6
|
interface CatmullRomCurve3Props {
|
|
@@ -19,12 +20,14 @@ interface CatmullRomCurve3Props {
|
|
|
19
20
|
gapSize?: number;
|
|
20
21
|
worldUnits?: boolean;
|
|
21
22
|
}
|
|
22
|
-
declare const _default: import(
|
|
23
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CatmullRomCurve3Props>, {
|
|
23
24
|
segments: number;
|
|
24
25
|
closed: boolean;
|
|
25
26
|
curveType: string;
|
|
26
27
|
tension: number;
|
|
27
|
-
}>, {
|
|
28
|
+
}>, {
|
|
29
|
+
instance: import('vue').ShallowRef<any>;
|
|
30
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CatmullRomCurve3Props>, {
|
|
28
31
|
segments: number;
|
|
29
32
|
closed: boolean;
|
|
30
33
|
curveType: string;
|