babylonjs-addons 9.2.1 → 9.2.2

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.
@@ -2294,10 +2294,10 @@ import { IColor4Like } from "babylonjs/Maths/math.like";
2294
2294
  * @param heightPx - The height of the texture in texels.
2295
2295
  * @param data - The texture data to sample.
2296
2296
  * @param result - The color to store the sample.
2297
- * @param normalizeFunc - The function to normalize the texel values. Default is to divide by 255.
2297
+ * @param normalizeFunc - The function to normalize the texel values. Default is to divide by 255. Pass null for no normalization.
2298
2298
  * @returns The result color.
2299
2299
  */
2300
- export function Sample2DRgbaToRef<T extends IColor4Like>(u: number, v: number, widthPx: number, heightPx: number, data: Uint8Array | Uint16Array | Float32Array, result: T, normalizeFunc?: (value: number) => number): T;
2300
+ export function Sample2DRgbaToRef<T extends IColor4Like>(u: number, v: number, widthPx: number, heightPx: number, data: Uint8Array | Uint16Array | Float32Array, result: T, normalizeFunc?: ((value: number) => number) | null): T;
2301
2301
 
2302
2302
  }
2303
2303
  declare module "babylonjs-addons/atmosphere/index" {
@@ -5714,10 +5714,10 @@ declare namespace ADDONS {
5714
5714
  * @param heightPx - The height of the texture in texels.
5715
5715
  * @param data - The texture data to sample.
5716
5716
  * @param result - The color to store the sample.
5717
- * @param normalizeFunc - The function to normalize the texel values. Default is to divide by 255.
5717
+ * @param normalizeFunc - The function to normalize the texel values. Default is to divide by 255. Pass null for no normalization.
5718
5718
  * @returns The result color.
5719
5719
  */
5720
- export function Sample2DRgbaToRef<T extends BABYLON.IColor4Like>(u: number, v: number, widthPx: number, heightPx: number, data: Uint8Array | Uint16Array | Float32Array, result: T, normalizeFunc?: (value: number) => number): T;
5720
+ export function Sample2DRgbaToRef<T extends BABYLON.IColor4Like>(u: number, v: number, widthPx: number, heightPx: number, data: Uint8Array | Uint16Array | Float32Array, result: T, normalizeFunc?: ((value: number) => number) | null): T;
5721
5721
 
5722
5722
 
5723
5723
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-addons",
3
- "version": "9.2.1",
3
+ "version": "9.2.2",
4
4
  "main": "babylonjs.addons.min.js",
5
5
  "types": "babylonjs.addons.module.d.ts",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.addons.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "9.2.1"
18
+ "babylonjs": "9.2.2"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/addons": "1.0.0",