@jdultra/threedtiles 14.0.16 → 14.0.18
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/splats/SplatsMesh.d.ts +32 -0
- package/dist/threedtiles.cjs.js +60 -327
- package/dist/threedtiles.cjs.js.map +1 -1
- package/dist/threedtiles.es.js +6952 -16812
- package/dist/threedtiles.es.js.map +1 -1
- package/dist/threedtiles.umd.js +60 -327
- package/dist/threedtiles.umd.js.map +1 -1
- package/dist/tileset/OGC3DTile.d.ts +34 -0
- package/package.json +1 -1
|
@@ -41,6 +41,11 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
41
41
|
* @param {String} [properties.splatsFragmentShader = undefined] - optional pass a custom fragment shader for rendering splats
|
|
42
42
|
* @param {number} [properties.splatsQuality = 0.75] - optional pass a visual quality for splats between 0 and 1. Lower quality improves performance at the cost of visual approximations.
|
|
43
43
|
* @param {boolean} [properties.splatsCPUCulling = false] - optional if true, splats are culled on CPU asynchronously. Better frame-rate and faster sorting but splats are absent when camera moves quickly until sort finishes.
|
|
44
|
+
*
|
|
45
|
+
* @param {number} [properties.splatsExposureEV = 0.0] - optional exposure compensation in EV (stops). Typical useful range: -6 → +6. Positive brightens, negative darkens.
|
|
46
|
+
* @param {number} [properties.splatsSaturation = 1.0] - optional saturation multiplier. Typical useful range: 0.0 → 2.0 (1.0 = unchanged).
|
|
47
|
+
* @param {number} [properties.splatsContrast = 1.0] - optional contrast multiplier. Typical useful range: 0.0 → 2.0 (1.0 = unchanged).
|
|
48
|
+
* @param {Array|Object} [properties.splatsTempTint = [0.0, 0.0]] - optional temperature and tint pair for simple white-balance adjustment. Values: temperature ∈ [-100,100], tint ∈ [-100,100]. Default [0,0].
|
|
44
49
|
*/
|
|
45
50
|
constructor(properties?: {
|
|
46
51
|
url?: string | undefined;
|
|
@@ -75,6 +80,10 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
75
80
|
splatsFragmentShader?: string | undefined;
|
|
76
81
|
splatsQuality?: number | undefined;
|
|
77
82
|
splatsCPUCulling?: boolean | undefined;
|
|
83
|
+
splatsExposureEV?: number | undefined;
|
|
84
|
+
splatsSaturation?: number | undefined;
|
|
85
|
+
splatsContrast?: number | undefined;
|
|
86
|
+
splatsTempTint?: Object | any[] | undefined;
|
|
78
87
|
});
|
|
79
88
|
splatsMesh: any;
|
|
80
89
|
oldUltraMeshSplats: any;
|
|
@@ -113,6 +122,10 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
113
122
|
geometricErrorMultiplier: number;
|
|
114
123
|
splatsCropRadius: number;
|
|
115
124
|
splatsSizeMultiplier: number;
|
|
125
|
+
/** @type {number} */ splatsExposureEV: number;
|
|
126
|
+
/** @type {number} */ splatsSaturation: number;
|
|
127
|
+
/** @type {number} */ splatsContrast: number;
|
|
128
|
+
splatsTempTint: number[];
|
|
116
129
|
renderer: any;
|
|
117
130
|
meshCallback: Function | undefined;
|
|
118
131
|
loadOutsideView: boolean | undefined;
|
|
@@ -160,6 +173,27 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
160
173
|
*/
|
|
161
174
|
setSplatsCPUCulling(splatsCPUCulling: boolean): void;
|
|
162
175
|
setSplatsQuality(splatsQuality: any): void;
|
|
176
|
+
/**
|
|
177
|
+
* Set exposure compensation (EV stops) for splats in this tile.
|
|
178
|
+
* @param {number} splatsExposureEV exposure in EV (stops). Useful range: -6 → +6. Positive brightens, negative darkens.
|
|
179
|
+
*/
|
|
180
|
+
setSplatsExposureEV(splatsExposureEV: number): void;
|
|
181
|
+
/**
|
|
182
|
+
* Set saturation multiplier for splats in this tile.
|
|
183
|
+
* @param {number} splatsSaturation saturation multiplier. Useful range: 0.0 → 2.0 (1.0 = unchanged).
|
|
184
|
+
*/
|
|
185
|
+
setSplatsSaturation(splatsSaturation: number): void;
|
|
186
|
+
/**
|
|
187
|
+
* Set contrast multiplier for splats in this tile.
|
|
188
|
+
* @param {number} splatsContrast contrast multiplier. Useful range: 0.0 → 2.0 (1.0 = unchanged).
|
|
189
|
+
*/
|
|
190
|
+
setSplatsContrast(splatsContrast: number): void;
|
|
191
|
+
/**
|
|
192
|
+
* Set temperature and tint for splats in this tile.
|
|
193
|
+
* @param {number} splatsTemperature temperature adjustment in range [-100,100] (warm/cool).
|
|
194
|
+
* @param {number} splatsTint tint adjustment in range [-100,100] (green/magenta).
|
|
195
|
+
*/
|
|
196
|
+
setSplatsTempTint(splatsTemperature: number, splatsTint: number): void;
|
|
163
197
|
/**
|
|
164
198
|
* Manually updates all the matrices of the tileset.
|
|
165
199
|
* To be called after transforming a {@link OGC3DTile tileset} instantiated with the "static" option
|