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.
package/babylonjs.addons.d.ts
CHANGED
|
@@ -2113,10 +2113,10 @@ declare namespace ADDONS {
|
|
|
2113
2113
|
* @param heightPx - The height of the texture in texels.
|
|
2114
2114
|
* @param data - The texture data to sample.
|
|
2115
2115
|
* @param result - The color to store the sample.
|
|
2116
|
-
* @param normalizeFunc - The function to normalize the texel values. Default is to divide by 255.
|
|
2116
|
+
* @param normalizeFunc - The function to normalize the texel values. Default is to divide by 255. Pass null for no normalization.
|
|
2117
2117
|
* @returns The result color.
|
|
2118
2118
|
*/
|
|
2119
|
-
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;
|
|
2119
|
+
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;
|
|
2120
2120
|
|
|
2121
2121
|
|
|
2122
2122
|
|