@woosh/meep-engine 2.118.6 → 2.118.8
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/build/meep.cjs +12 -5
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +12 -5
- package/package.json +1 -1
- package/src/core/color/Color.d.ts.map +1 -1
- package/src/core/color/Color.js +11 -4
- package/src/core/color/operations/color_darken.d.ts +8 -0
- package/src/core/color/operations/color_darken.d.ts.map +1 -0
- package/src/core/color/operations/color_darken.js +27 -0
- package/src/core/color/operations/color_desaturate.d.ts +8 -0
- package/src/core/color/operations/color_desaturate.d.ts.map +1 -0
- package/src/core/color/operations/color_desaturate.js +27 -0
- package/src/core/color/operations/color_lighten.d.ts +8 -0
- package/src/core/color/operations/color_lighten.d.ts.map +1 -0
- package/src/core/color/operations/color_lighten.js +27 -0
- package/src/core/color/operations/color_saturate.d.ts +8 -0
- package/src/core/color/operations/color_saturate.d.ts.map +1 -0
- package/src/core/color/operations/color_saturate.js +27 -0
- package/src/engine/graphics/ecs/light/LightSystem.js +1 -1
package/build/meep.cjs
CHANGED
|
@@ -54429,19 +54429,26 @@ class Color {
|
|
|
54429
54429
|
/**
|
|
54430
54430
|
*
|
|
54431
54431
|
* @param {Color} input
|
|
54432
|
-
* @param {Color} output
|
|
54432
|
+
* @param {Color} [output]
|
|
54433
|
+
* @returns {Color}
|
|
54433
54434
|
*/
|
|
54434
|
-
static from_linear_to_sRGB(input, output) {
|
|
54435
|
+
static from_linear_to_sRGB(input, output=new Color()) {
|
|
54436
|
+
|
|
54435
54437
|
linear_to_sRGB(output, 0, input, 0);
|
|
54438
|
+
|
|
54439
|
+
return output;
|
|
54436
54440
|
}
|
|
54437
54441
|
|
|
54438
54442
|
/**
|
|
54439
54443
|
*
|
|
54440
54444
|
* @param {Color} input
|
|
54441
|
-
* @param {Color} output
|
|
54445
|
+
* @param {Color} [output]
|
|
54446
|
+
* @returns {Color}
|
|
54442
54447
|
*/
|
|
54443
|
-
static from_sRGB_to_linear(input, output) {
|
|
54448
|
+
static from_sRGB_to_linear(input, output = new Color()) {
|
|
54444
54449
|
sRGB_to_linear(output, 0, input, 0);
|
|
54450
|
+
|
|
54451
|
+
return output;
|
|
54445
54452
|
}
|
|
54446
54453
|
}
|
|
54447
54454
|
|
|
@@ -114200,7 +114207,7 @@ class LightSystem extends AbstractContextSystem {
|
|
|
114200
114207
|
}
|
|
114201
114208
|
|
|
114202
114209
|
if (settings.preAllocateLightsAmbient !== undefined) {
|
|
114203
|
-
this.__three_light_cache.reserve(LightType.
|
|
114210
|
+
this.__three_light_cache.reserve(LightType.AMBIENT, settings.preAllocateLightsAmbient);
|
|
114204
114211
|
}
|
|
114205
114212
|
}
|
|
114206
114213
|
|