|
@@ -12039,6 +12039,10 @@ declare module "babylonjs/Materials/Textures/cubeTexture" {
|
|
|
private _noMipmap;
|
|
|
private _files;
|
|
|
protected _forcedExtension: Nullable<string>;
|
|
|
+ /**
|
|
|
+ * Gets the forced extension (if any)
|
|
|
+ */
|
|
|
+ get forcedExtension(): Nullable<string>;
|
|
|
private _extensions;
|
|
|
private _textureMatrix;
|
|
|
private _format;
|
|
@@ -75569,13 +75573,13 @@ declare module "babylonjs/Meshes/thinInstanceMesh" {
|
|
|
* @param refresh true to refresh the underlying gpu buffer (default: true). If you do multiple calls to this method in a row, set refresh to true only for the last call to save performance
|
|
|
* @returns the thin instance index number. If you pass an array of matrices, other instance indexes are index+1, index+2, etc
|
|
|
*/
|
|
|
- thinInstanceAdd(matrix: DeepImmutableObject<Matrix> | Array<DeepImmutableObject<Matrix>>, refresh: boolean): number;
|
|
|
+ thinInstanceAdd(matrix: DeepImmutableObject<Matrix> | Array<DeepImmutableObject<Matrix>>, refresh?: boolean): number;
|
|
|
/**
|
|
|
* Adds the transformation (matrix) of the current mesh as a thin instance
|
|
|
* @param refresh true to refresh the underlying gpu buffer (default: true). If you do multiple calls to this method in a row, set refresh to true only for the last call to save performance
|
|
|
* @returns the thin instance index number
|
|
|
*/
|
|
|
- thinInstanceAddSelf(refresh: boolean): number;
|
|
|
+ thinInstanceAddSelf(refresh?: boolean): number;
|
|
|
/**
|
|
|
* Registers a custom attribute to be used with thin instances
|
|
|
* @param kind name of the attribute
|
|
@@ -75588,7 +75592,7 @@ declare module "babylonjs/Meshes/thinInstanceMesh" {
|
|
|
* @param matrix matrix to set
|
|
|
* @param refresh true to refresh the underlying gpu buffer (default: true). If you do multiple calls to this method in a row, set refresh to true only for the last call to save performance
|
|
|
*/
|
|
|
- thinInstanceSetMatrixAt(index: number, matrix: DeepImmutableObject<Matrix>, refresh: boolean): void;
|
|
|
+ thinInstanceSetMatrixAt(index: number, matrix: DeepImmutableObject<Matrix>, refresh?: boolean): void;
|
|
|
/**
|
|
|
* Sets the value of a custom attribute for a thin instance
|
|
|
* @param kind name of the attribute
|
|
@@ -75596,7 +75600,7 @@ declare module "babylonjs/Meshes/thinInstanceMesh" {
|
|
|
* @param value value to set
|
|
|
* @param refresh true to refresh the underlying gpu buffer (default: true). If you do multiple calls to this method in a row, set refresh to true only for the last call to save performance
|
|
|
*/
|
|
|
- thinInstanceSetAttributeAt(kind: string, index: number, value: Array<number>, refresh: boolean): void;
|
|
|
+ thinInstanceSetAttributeAt(kind: string, index: number, value: Array<number>, refresh?: boolean): void;
|
|
|
/**
|
|
|
* Gets / sets the number of thin instances to display. Note that you can't set a number higher than what the underlying buffer can handle.
|
|
|
*/
|
|
@@ -75608,7 +75612,7 @@ declare module "babylonjs/Meshes/thinInstanceMesh" {
|
|
|
* @param stride size in floats of each value of the buffer
|
|
|
* @param staticBuffer indicates that the buffer is static, so that you won't change it after it is set (better performances - false by default)
|
|
|
*/
|
|
|
- thinInstanceSetBuffer(kind: string, buffer: Nullable<Float32Array>, stride: number, staticBuffer: boolean): void;
|
|
|
+ thinInstanceSetBuffer(kind: string, buffer: Nullable<Float32Array>, stride?: number, staticBuffer?: boolean): void;
|
|
|
/**
|
|
|
* Gets the list of world matrices
|
|
|
* @return an array containing all the world matrices from the thin instances
|
|
@@ -75631,11 +75635,11 @@ declare module "babylonjs/Meshes/thinInstanceMesh" {
|
|
|
* Refreshes the bounding info, taking into account all the thin instances defined
|
|
|
* @param forceRefreshParentInfo true to force recomputing the mesh bounding info and use it to compute the aggregated bounding info
|
|
|
*/
|
|
|
- thinInstanceRefreshBoundingInfo(forceRefreshParentInfo: boolean): void;
|
|
|
+ thinInstanceRefreshBoundingInfo(forceRefreshParentInfo?: boolean): void;
|
|
|
/** @hidden */
|
|
|
_thinInstanceInitializeUserStorage(): void;
|
|
|
/** @hidden */
|
|
|
- _thinInstanceUpdateBufferSize(kind: string, numInstances: number): void;
|
|
|
+ _thinInstanceUpdateBufferSize(kind: string, numInstances?: number): void;
|
|
|
/** @hidden */
|
|
|
_userThinInstanceBuffersStorage: {
|
|
|
data: {
|
|
@@ -97592,6 +97596,10 @@ declare module BABYLON {
|
|
|
private _noMipmap;
|
|
|
private _files;
|
|
|
protected _forcedExtension: Nullable<string>;
|
|
|
+ /**
|
|
|
+ * Gets the forced extension (if any)
|
|
|
+ */
|
|
|
+ get forcedExtension(): Nullable<string>;
|
|
|
private _extensions;
|
|
|
private _textureMatrix;
|
|
|
private _format;
|
|
@@ -157595,13 +157603,13 @@ declare module BABYLON {
|
|
|
* @param refresh true to refresh the underlying gpu buffer (default: true). If you do multiple calls to this method in a row, set refresh to true only for the last call to save performance
|
|
|
* @returns the thin instance index number. If you pass an array of matrices, other instance indexes are index+1, index+2, etc
|
|
|
*/
|
|
|
- thinInstanceAdd(matrix: DeepImmutableObject<Matrix> | Array<DeepImmutableObject<Matrix>>, refresh: boolean): number;
|
|
|
+ thinInstanceAdd(matrix: DeepImmutableObject<Matrix> | Array<DeepImmutableObject<Matrix>>, refresh?: boolean): number;
|
|
|
/**
|
|
|
* Adds the transformation (matrix) of the current mesh as a thin instance
|
|
|
* @param refresh true to refresh the underlying gpu buffer (default: true). If you do multiple calls to this method in a row, set refresh to true only for the last call to save performance
|
|
|
* @returns the thin instance index number
|
|
|
*/
|
|
|
- thinInstanceAddSelf(refresh: boolean): number;
|
|
|
+ thinInstanceAddSelf(refresh?: boolean): number;
|
|
|
/**
|
|
|
* Registers a custom attribute to be used with thin instances
|
|
|
* @param kind name of the attribute
|
|
@@ -157614,7 +157622,7 @@ declare module BABYLON {
|
|
|
* @param matrix matrix to set
|
|
|
* @param refresh true to refresh the underlying gpu buffer (default: true). If you do multiple calls to this method in a row, set refresh to true only for the last call to save performance
|
|
|
*/
|
|
|
- thinInstanceSetMatrixAt(index: number, matrix: DeepImmutableObject<Matrix>, refresh: boolean): void;
|
|
|
+ thinInstanceSetMatrixAt(index: number, matrix: DeepImmutableObject<Matrix>, refresh?: boolean): void;
|
|
|
/**
|
|
|
* Sets the value of a custom attribute for a thin instance
|
|
|
* @param kind name of the attribute
|
|
@@ -157622,7 +157630,7 @@ declare module BABYLON {
|
|
|
* @param value value to set
|
|
|
* @param refresh true to refresh the underlying gpu buffer (default: true). If you do multiple calls to this method in a row, set refresh to true only for the last call to save performance
|
|
|
*/
|
|
|
- thinInstanceSetAttributeAt(kind: string, index: number, value: Array<number>, refresh: boolean): void;
|
|
|
+ thinInstanceSetAttributeAt(kind: string, index: number, value: Array<number>, refresh?: boolean): void;
|
|
|
/**
|
|
|
* Gets / sets the number of thin instances to display. Note that you can't set a number higher than what the underlying buffer can handle.
|
|
|
*/
|
|
@@ -157634,7 +157642,7 @@ declare module BABYLON {
|
|
|
* @param stride size in floats of each value of the buffer
|
|
|
* @param staticBuffer indicates that the buffer is static, so that you won't change it after it is set (better performances - false by default)
|
|
|
*/
|
|
|
- thinInstanceSetBuffer(kind: string, buffer: Nullable<Float32Array>, stride: number, staticBuffer: boolean): void;
|
|
|
+ thinInstanceSetBuffer(kind: string, buffer: Nullable<Float32Array>, stride?: number, staticBuffer?: boolean): void;
|
|
|
/**
|
|
|
* Gets the list of world matrices
|
|
|
* @return an array containing all the world matrices from the thin instances
|
|
@@ -157657,11 +157665,11 @@ declare module BABYLON {
|
|
|
* Refreshes the bounding info, taking into account all the thin instances defined
|
|
|
* @param forceRefreshParentInfo true to force recomputing the mesh bounding info and use it to compute the aggregated bounding info
|
|
|
*/
|
|
|
- thinInstanceRefreshBoundingInfo(forceRefreshParentInfo: boolean): void;
|
|
|
+ thinInstanceRefreshBoundingInfo(forceRefreshParentInfo?: boolean): void;
|
|
|
/** @hidden */
|
|
|
_thinInstanceInitializeUserStorage(): void;
|
|
|
/** @hidden */
|
|
|
- _thinInstanceUpdateBufferSize(kind: string, numInstances: number): void;
|
|
|
+ _thinInstanceUpdateBufferSize(kind: string, numInstances?: number): void;
|
|
|
/** @hidden */
|
|
|
_userThinInstanceBuffersStorage: {
|
|
|
data: {
|