@tresjs/cientos 4.2.0 → 4.3.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/dist/core/abstractions/useSurfaceSampler/index.d.ts +4 -0
- package/dist/core/staging/useEnvironment/component.vue.d.ts +3 -1
- package/dist/core/staging/useEnvironment/const.d.ts +37 -0
- package/dist/core/staging/useEnvironment/index.d.ts +6 -1
- package/dist/trescientos.js +3870 -3838
- package/dist/trescientos.umd.cjs +62 -62
- package/package.json +1 -1
|
@@ -706,6 +706,8 @@ export declare const useSurfaceSampler: (mesh: Mesh, count?: number, instanceMes
|
|
|
706
706
|
count: number;
|
|
707
707
|
needsUpdate: boolean;
|
|
708
708
|
uuid: string;
|
|
709
|
+
onUploadCallback: () => void;
|
|
710
|
+
onUpload: (callback: () => void) => InterleavedBuffer;
|
|
709
711
|
set: (value: ArrayLike<number>, offset: number) => InterleavedBuffer;
|
|
710
712
|
setUsage: (value: import('three').Usage) => InterleavedBuffer;
|
|
711
713
|
addUpdateRange: (start: number, count: number) => void;
|
|
@@ -1389,6 +1391,8 @@ export declare const useSurfaceSampler: (mesh: Mesh, count?: number, instanceMes
|
|
|
1389
1391
|
count: number;
|
|
1390
1392
|
needsUpdate: boolean;
|
|
1391
1393
|
uuid: string;
|
|
1394
|
+
onUploadCallback: () => void;
|
|
1395
|
+
onUpload: (callback: () => void) => InterleavedBuffer;
|
|
1392
1396
|
set: (value: ArrayLike<number>, offset: number) => InterleavedBuffer;
|
|
1393
1397
|
setUsage: (value: import('three').Usage) => InterleavedBuffer;
|
|
1394
1398
|
addUpdateRange: (start: number, count: number) => void;
|
|
@@ -17,8 +17,10 @@ declare const __VLS_component: import('vue').DefineComponent<EnvironmentOptions,
|
|
|
17
17
|
path: string;
|
|
18
18
|
near: number;
|
|
19
19
|
far: number;
|
|
20
|
-
|
|
20
|
+
backgroundIntensity: number;
|
|
21
21
|
background: boolean | string;
|
|
22
|
+
environmentIntensity: number;
|
|
23
|
+
blur: number;
|
|
22
24
|
resolution: number;
|
|
23
25
|
frames: number;
|
|
24
26
|
preset: import('./const').EnvironmentPresetsType;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VectorFlexibleParams } from '@tresjs/core';
|
|
1
2
|
export interface EnvironmentOptions {
|
|
2
3
|
/**
|
|
3
4
|
* If true, the environment will be set as the scene's background.
|
|
@@ -61,6 +62,42 @@ export interface EnvironmentOptions {
|
|
|
61
62
|
* @default Infinity
|
|
62
63
|
*/
|
|
63
64
|
frames?: number;
|
|
65
|
+
/**
|
|
66
|
+
* The intensity of the background.
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @default 1
|
|
70
|
+
*/
|
|
71
|
+
backgroundIntensity?: number;
|
|
72
|
+
/**
|
|
73
|
+
* The rotation of the background.
|
|
74
|
+
*
|
|
75
|
+
* @type {VectorFlexibleParams}
|
|
76
|
+
* @default [0, 0, 0]
|
|
77
|
+
*/
|
|
78
|
+
backgroundRotation?: VectorFlexibleParams;
|
|
79
|
+
/**
|
|
80
|
+
* The intensity of the environment.
|
|
81
|
+
*
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @default 1
|
|
84
|
+
*/
|
|
85
|
+
environmentIntensity?: number;
|
|
86
|
+
/**
|
|
87
|
+
* The rotation of the environment.
|
|
88
|
+
*
|
|
89
|
+
* @type {VectorFlexibleParams}
|
|
90
|
+
* @default [0, 0, 0]
|
|
91
|
+
*/
|
|
92
|
+
environmentRotation?: VectorFlexibleParams;
|
|
93
|
+
/**
|
|
94
|
+
* If true, the environment rotation will be synced with the background rotation.
|
|
95
|
+
* This means when backgroundRotation changes, environmentRotation will be updated to match.
|
|
96
|
+
*
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
100
|
+
syncMaterials?: boolean;
|
|
64
101
|
}
|
|
65
102
|
export declare const environmentPresets: {
|
|
66
103
|
sunset: string;
|
|
@@ -11,7 +11,12 @@ import { EnvironmentOptions } from './const';
|
|
|
11
11
|
* background = false,
|
|
12
12
|
* path = undefined,
|
|
13
13
|
* preset = undefined,
|
|
14
|
-
* colorSpace =
|
|
14
|
+
* colorSpace = 'srgb',
|
|
15
|
+
* backgroundIntensity = 1,
|
|
16
|
+
* environmentIntensity = 1,
|
|
17
|
+
* backgroundRotation = [0, 0, 0],
|
|
18
|
+
* environmentRotation = [0, 0, 0],
|
|
19
|
+
* syncMaterials = false,
|
|
15
20
|
* @param {Ref<WebGLCubeRenderTarget | null>} fbo - The framebuffer object
|
|
16
21
|
* @return {Promise<Ref<Texture | CubeTexture | null>>} The loaded texture
|
|
17
22
|
*/
|