@glowjs/core 2025.7.19 → 2025.7.24
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/glow.core.d.ts +41 -3
- package/dist/glow.core.js +1 -1
- package/dist/typings/effect/EffectMgr.d.ts +2 -3
- package/dist/typings/entity/path/createPointInstance.d.ts +2 -1
- package/dist/typings/gui/PerformancePanel.d.ts +2 -0
- package/dist/typings/res/ResPool.d.ts +1 -0
- package/dist/typings/res/registerBufferAndSetEffect.d.ts +7 -0
- package/package.json +1 -1
- package/dist/typings/res/registerBuffer.d.ts +0 -6
package/dist/glow.core.d.ts
CHANGED
|
@@ -179,6 +179,43 @@ declare class EnvironmentTexture extends Base {
|
|
|
179
179
|
*/
|
|
180
180
|
setEnvEffect(): Promise<void>;
|
|
181
181
|
}
|
|
182
|
+
declare class Glow extends Base {
|
|
183
|
+
private _layer;
|
|
184
|
+
/**
|
|
185
|
+
* 实例化一个发光层对象
|
|
186
|
+
* @param app 应用
|
|
187
|
+
*/
|
|
188
|
+
constructor(app: App);
|
|
189
|
+
/**
|
|
190
|
+
* 获取或设置启用
|
|
191
|
+
*/
|
|
192
|
+
get enable(): boolean;
|
|
193
|
+
set enable(value: boolean);
|
|
194
|
+
/**
|
|
195
|
+
* 获取或设置强度
|
|
196
|
+
*/
|
|
197
|
+
get intensity(): number;
|
|
198
|
+
set intensity(value: number);
|
|
199
|
+
/**
|
|
200
|
+
* 获取或设置模糊系数
|
|
201
|
+
*/
|
|
202
|
+
get blurSize(): number;
|
|
203
|
+
set blurSize(value: number);
|
|
204
|
+
/**
|
|
205
|
+
* 添加网格
|
|
206
|
+
* @param mesh 网格
|
|
207
|
+
*/
|
|
208
|
+
addMesh(mesh: Mesh): void;
|
|
209
|
+
/**
|
|
210
|
+
* 移除网格
|
|
211
|
+
* @param mesh 网格
|
|
212
|
+
*/
|
|
213
|
+
removeMesh(mesh: Mesh): void;
|
|
214
|
+
/**
|
|
215
|
+
* 释放
|
|
216
|
+
*/
|
|
217
|
+
dispose(): void;
|
|
218
|
+
}
|
|
182
219
|
declare class ImageProcessing extends Base {
|
|
183
220
|
private _config;
|
|
184
221
|
/**
|
|
@@ -560,6 +597,8 @@ declare class PerformancePanel extends StackPanel {
|
|
|
560
597
|
private _heapTotal;
|
|
561
598
|
private _heapLimit;
|
|
562
599
|
private _deltaTimeValue;
|
|
600
|
+
private _activeFaces;
|
|
601
|
+
private _totalVertices;
|
|
563
602
|
private _sceneInstrumentation;
|
|
564
603
|
private _engineInstrumentation;
|
|
565
604
|
app: App;
|
|
@@ -2507,13 +2546,11 @@ export declare class EffectMgr extends Base {
|
|
|
2507
2546
|
/**
|
|
2508
2547
|
* 发光层
|
|
2509
2548
|
*/
|
|
2549
|
+
glow: Glow;
|
|
2510
2550
|
/**
|
|
2511
2551
|
* 灯光
|
|
2512
2552
|
*/
|
|
2513
2553
|
light: Light;
|
|
2514
|
-
/**
|
|
2515
|
-
* 高亮层
|
|
2516
|
-
*/
|
|
2517
2554
|
/**
|
|
2518
2555
|
* 图像处理
|
|
2519
2556
|
*/
|
|
@@ -4513,6 +4550,7 @@ export declare class ResPool extends Base {
|
|
|
4513
4550
|
* 资源列表
|
|
4514
4551
|
*/
|
|
4515
4552
|
readonly resList: ResOptions[];
|
|
4553
|
+
_cacheVertices: number;
|
|
4516
4554
|
/**
|
|
4517
4555
|
* 缓存
|
|
4518
4556
|
*/
|