@canvasengine/presets 2.0.0-beta.50 → 2.0.0-beta.51
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/Weathers/fog.d.ts +1 -0
- package/dist/Weathers/fog.d.ts.map +1 -1
- package/dist/Weathers/index.d.ts.map +1 -1
- package/dist/Weathers/rain.d.ts +0 -17
- package/dist/Weathers/rain.d.ts.map +1 -1
- package/dist/Weathers/snow.d.ts +2 -7
- package/dist/Weathers/snow.d.ts.map +1 -1
- package/dist/index.global.js +251 -315
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1260 -1301
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/Weathers/fog.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fog.d.ts","sourceRoot":"","sources":["../../src/Weathers/fog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,wBAAgB,eAAe,IAAI,SAAS,
|
|
1
|
+
{"version":3,"file":"fog.d.ts","sourceRoot":"","sources":["../../src/Weathers/fog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,wBAAgB,eAAe,IAAI,SAAS,CAkF3C;AAED,wBAAgB,iBAAiB,IAAI,SAAS,CAoF7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Weathers/index.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,YAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Weathers/index.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,YAAO,iKA+NpC,CAAC;AAEF,eAAO,MAAM,OAAO,gLAAgB,CAAC"}
|
package/dist/Weathers/rain.d.ts
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
1
|
import { GlProgram } from 'pixi.js';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a high-performance rain shader program with fine realistic streaks
|
|
4
|
-
*
|
|
5
|
-
* Generates procedural raindrops using optimized hash functions for randomness.
|
|
6
|
-
* Simulates physics with gravity and wind effects on fine elongated streaks.
|
|
7
|
-
* Features thin realistic rain streaks (like real rain), optimized calculations,
|
|
8
|
-
* and early exit optimizations for smooth 60fps performance.
|
|
9
|
-
*
|
|
10
|
-
* Performance optimizations:
|
|
11
|
-
* - Reduced hash function calls (4 instead of 6)
|
|
12
|
-
* - Early bounds checking before expensive calculations
|
|
13
|
-
* - Single smoothstep instead of multiple
|
|
14
|
-
* - Optimized distance calculations
|
|
15
|
-
* - Pre-calculated trigonometric values
|
|
16
|
-
*
|
|
17
|
-
* @returns {GlProgram} The compiled WebGL program for rain effect
|
|
18
|
-
*/
|
|
19
2
|
export declare function createRainShader(): GlProgram;
|
|
20
3
|
//# sourceMappingURL=rain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rain.d.ts","sourceRoot":"","sources":["../../src/Weathers/rain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC
|
|
1
|
+
{"version":3,"file":"rain.d.ts","sourceRoot":"","sources":["../../src/Weathers/rain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,wBAAgB,gBAAgB,IAAI,SAAS,CA6F5C"}
|
package/dist/Weathers/snow.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { GlProgram } from 'pixi.js';
|
|
2
2
|
/**
|
|
3
|
-
* Creates a
|
|
4
|
-
*
|
|
5
|
-
* Generates procedural snowflakes with circular shapes and size variation.
|
|
6
|
-
* Simulates gentle physics with slower movement and subtle wind drift.
|
|
7
|
-
* Optimized for performance with early exits and efficient calculations.
|
|
8
|
-
*
|
|
9
|
-
* @returns {GlProgram} The compiled WebGL program for snow effect
|
|
3
|
+
* Creates a performant snow shader program.
|
|
4
|
+
* Optimized with early exits, capped loop count, and LOD based on resolution.
|
|
10
5
|
*/
|
|
11
6
|
export declare function createSnowShader(): GlProgram;
|
|
12
7
|
//# sourceMappingURL=snow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snow.d.ts","sourceRoot":"","sources":["../../src/Weathers/snow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC
|
|
1
|
+
{"version":3,"file":"snow.d.ts","sourceRoot":"","sources":["../../src/Weathers/snow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,SAAS,CAqG5C"}
|