|
|
@@ -16756,7 +16756,7 @@ declare module "babylonjs/Materials/shaderMaterial" {
|
|
|
import { Matrix, Vector3, Vector2, Vector4 } from "babylonjs/Maths/math.vector";
|
|
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
|
import { Mesh } from "babylonjs/Meshes/mesh";
|
|
|
- import { SubMesh, BaseSubMesh } from "babylonjs/Meshes/subMesh";
|
|
|
+ import { SubMesh } from "babylonjs/Meshes/subMesh";
|
|
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
|
import { Effect } from "babylonjs/Materials/effect";
|
|
|
import { Material } from "babylonjs/Materials/material";
|
|
|
@@ -17016,7 +17016,7 @@ declare module "babylonjs/Materials/shaderMaterial" {
|
|
|
* @param useInstances specifies that instances should be used
|
|
|
* @returns a boolean indicating that the submesh is ready or not
|
|
|
*/
|
|
|
- isReadyForSubMesh(mesh: AbstractMesh, subMesh: BaseSubMesh, useInstances?: boolean): boolean;
|
|
|
+ isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh, useInstances?: boolean): boolean;
|
|
|
/**
|
|
|
* Checks if the material is ready to render the requested mesh
|
|
|
* @param mesh Define the mesh to render
|
|
|
@@ -24459,7 +24459,7 @@ declare module "babylonjs/Materials/material" {
|
|
|
import { Nullable } from "babylonjs/types";
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
|
- import { BaseSubMesh, SubMesh } from "babylonjs/Meshes/subMesh";
|
|
|
+ import { SubMesh } from "babylonjs/Meshes/subMesh";
|
|
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
|
import { UniformBuffer } from "babylonjs/Materials/uniformBuffer";
|
|
|
import { Effect } from "babylonjs/Materials/effect";
|
|
|
@@ -24906,7 +24906,7 @@ declare module "babylonjs/Materials/material" {
|
|
|
* @param useInstances specifies that instances should be used
|
|
|
* @returns a boolean indicating that the submesh is ready or not
|
|
|
*/
|
|
|
- isReadyForSubMesh(mesh: AbstractMesh, subMesh: BaseSubMesh, useInstances?: boolean): boolean;
|
|
|
+ isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh, useInstances?: boolean): boolean;
|
|
|
/**
|
|
|
* Returns the material effect
|
|
|
* @returns the effect associated with the material
|
|
|
@@ -25142,7 +25142,7 @@ declare module "babylonjs/Materials/multiMaterial" {
|
|
|
import { Nullable } from "babylonjs/types";
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
|
- import { BaseSubMesh } from "babylonjs/Meshes/subMesh";
|
|
|
+ import { SubMesh } from "babylonjs/Meshes/subMesh";
|
|
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
|
import { Material } from "babylonjs/Materials/material";
|
|
|
/**
|
|
|
@@ -25197,7 +25197,7 @@ declare module "babylonjs/Materials/multiMaterial" {
|
|
|
* @param useInstances Define whether or not the material is used with instances
|
|
|
* @returns true if ready, otherwise false
|
|
|
*/
|
|
|
- isReadyForSubMesh(mesh: AbstractMesh, subMesh: BaseSubMesh, useInstances?: boolean): boolean;
|
|
|
+ isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh, useInstances?: boolean): boolean;
|
|
|
/**
|
|
|
* Clones the current material and its related sub materials
|
|
|
* @param name Define the name of the newly cloned material
|
|
|
@@ -25243,9 +25243,19 @@ declare module "babylonjs/Meshes/subMesh" {
|
|
|
import { Ray } from "babylonjs/Culling/ray";
|
|
|
import { TrianglePickingPredicate } from "babylonjs/Culling/ray";
|
|
|
/**
|
|
|
- * Base class for submeshes
|
|
|
+ * Defines a subdivision inside a mesh
|
|
|
*/
|
|
|
- export class BaseSubMesh {
|
|
|
+ export class SubMesh implements ICullable {
|
|
|
+ /** the material index to use */
|
|
|
+ materialIndex: number;
|
|
|
+ /** vertex index start */
|
|
|
+ verticesStart: number;
|
|
|
+ /** vertices count */
|
|
|
+ verticesCount: number;
|
|
|
+ /** index start */
|
|
|
+ indexStart: number;
|
|
|
+ /** indices count */
|
|
|
+ indexCount: number;
|
|
|
/** @hidden */
|
|
|
_materialDefines: Nullable<MaterialDefines>;
|
|
|
/** @hidden */
|
|
|
@@ -25270,21 +25280,6 @@ declare module "babylonjs/Meshes/subMesh" {
|
|
|
* @param defines defines the set of defines used to compile this effect
|
|
|
*/
|
|
|
setEffect(effect: Nullable<Effect>, defines?: Nullable<MaterialDefines>): void;
|
|
|
- }
|
|
|
- /**
|
|
|
- * Defines a subdivision inside a mesh
|
|
|
- */
|
|
|
- export class SubMesh extends BaseSubMesh implements ICullable {
|
|
|
- /** the material index to use */
|
|
|
- materialIndex: number;
|
|
|
- /** vertex index start */
|
|
|
- verticesStart: number;
|
|
|
- /** vertices count */
|
|
|
- verticesCount: number;
|
|
|
- /** index start */
|
|
|
- indexStart: number;
|
|
|
- /** indices count */
|
|
|
- indexCount: number;
|
|
|
/** @hidden */
|
|
|
_linesIndexCount: number;
|
|
|
private _mesh;
|
|
|
@@ -25368,6 +25363,16 @@ declare module "babylonjs/Meshes/subMesh" {
|
|
|
*/
|
|
|
getRenderingMesh(): Mesh;
|
|
|
/**
|
|
|
+ * Returns the replacement mesh of the submesh
|
|
|
+ * @returns the replacement mesh (could be different from parent mesh)
|
|
|
+ */
|
|
|
+ getReplacementMesh(): Nullable<AbstractMesh>;
|
|
|
+ /**
|
|
|
+ * Returns the effective mesh of the submesh
|
|
|
+ * @returns the effective mesh (could be different from parent mesh)
|
|
|
+ */
|
|
|
+ getEffectiveMesh(): AbstractMesh;
|
|
|
+ /**
|
|
|
* Returns the submesh material
|
|
|
* @returns null or the current material
|
|
|
*/
|
|
|
@@ -68387,10 +68392,6 @@ declare module "babylonjs/Meshes/thinInstanceMesh" {
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
- /**
|
|
|
- * @hidden
|
|
|
- */
|
|
|
- export var _IDoNeedToBeInTheBuild2: number;
|
|
|
}
|
|
|
declare module "babylonjs/Meshes/index" {
|
|
|
export * from "babylonjs/Meshes/abstractMesh";
|
|
|
@@ -68414,6 +68415,7 @@ declare module "babylonjs/Meshes/index" {
|
|
|
export * from "babylonjs/Meshes/Builders/index";
|
|
|
export * from "babylonjs/Meshes/dataBuffer";
|
|
|
export * from "babylonjs/Meshes/WebGL/webGLDataBuffer";
|
|
|
+ import "babylonjs/Meshes/thinInstanceMesh";
|
|
|
export * from "babylonjs/Meshes/thinInstanceMesh";
|
|
|
}
|
|
|
declare module "babylonjs/Morph/index" {
|
|
|
@@ -69702,10 +69704,6 @@ declare module "babylonjs/Particles/particleSystemComponent" {
|
|
|
getHierarchyEmittedParticleSystems(): IParticleSystem[];
|
|
|
}
|
|
|
}
|
|
|
- /**
|
|
|
- * @hidden
|
|
|
- */
|
|
|
- export var _IDoNeedToBeInTheBuild: number;
|
|
|
}
|
|
|
declare module "babylonjs/Particles/pointsCloudSystem" {
|
|
|
import { Color4 } from "babylonjs/Maths/math";
|
|
|
@@ -70141,6 +70139,7 @@ declare module "babylonjs/Particles/index" {
|
|
|
export * from "babylonjs/Particles/particle";
|
|
|
export * from "babylonjs/Particles/particleHelper";
|
|
|
export * from "babylonjs/Particles/particleSystem";
|
|
|
+ import "babylonjs/Particles/particleSystemComponent";
|
|
|
export * from "babylonjs/Particles/particleSystemComponent";
|
|
|
export * from "babylonjs/Particles/particleSystemSet";
|
|
|
export * from "babylonjs/Particles/solidParticle";
|
|
|
@@ -93747,7 +93746,7 @@ declare module BABYLON {
|
|
|
* @param useInstances specifies that instances should be used
|
|
|
* @returns a boolean indicating that the submesh is ready or not
|
|
|
*/
|
|
|
- isReadyForSubMesh(mesh: AbstractMesh, subMesh: BaseSubMesh, useInstances?: boolean): boolean;
|
|
|
+ isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh, useInstances?: boolean): boolean;
|
|
|
/**
|
|
|
* Checks if the material is ready to render the requested mesh
|
|
|
* @param mesh Define the mesh to render
|
|
|
@@ -101221,7 +101220,7 @@ declare module BABYLON {
|
|
|
* @param useInstances specifies that instances should be used
|
|
|
* @returns a boolean indicating that the submesh is ready or not
|
|
|
*/
|
|
|
- isReadyForSubMesh(mesh: AbstractMesh, subMesh: BaseSubMesh, useInstances?: boolean): boolean;
|
|
|
+ isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh, useInstances?: boolean): boolean;
|
|
|
/**
|
|
|
* Returns the material effect
|
|
|
* @returns the effect associated with the material
|
|
|
@@ -101506,7 +101505,7 @@ declare module BABYLON {
|
|
|
* @param useInstances Define whether or not the material is used with instances
|
|
|
* @returns true if ready, otherwise false
|
|
|
*/
|
|
|
- isReadyForSubMesh(mesh: AbstractMesh, subMesh: BaseSubMesh, useInstances?: boolean): boolean;
|
|
|
+ isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh, useInstances?: boolean): boolean;
|
|
|
/**
|
|
|
* Clones the current material and its related sub materials
|
|
|
* @param name Define the name of the newly cloned material
|
|
|
@@ -101537,9 +101536,19 @@ declare module BABYLON {
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
- * Base class for submeshes
|
|
|
+ * Defines a subdivision inside a mesh
|
|
|
*/
|
|
|
- export class BaseSubMesh {
|
|
|
+ export class SubMesh implements ICullable {
|
|
|
+ /** the material index to use */
|
|
|
+ materialIndex: number;
|
|
|
+ /** vertex index start */
|
|
|
+ verticesStart: number;
|
|
|
+ /** vertices count */
|
|
|
+ verticesCount: number;
|
|
|
+ /** index start */
|
|
|
+ indexStart: number;
|
|
|
+ /** indices count */
|
|
|
+ indexCount: number;
|
|
|
/** @hidden */
|
|
|
_materialDefines: Nullable<MaterialDefines>;
|
|
|
/** @hidden */
|
|
|
@@ -101564,21 +101573,6 @@ declare module BABYLON {
|
|
|
* @param defines defines the set of defines used to compile this effect
|
|
|
*/
|
|
|
setEffect(effect: Nullable<Effect>, defines?: Nullable<MaterialDefines>): void;
|
|
|
- }
|
|
|
- /**
|
|
|
- * Defines a subdivision inside a mesh
|
|
|
- */
|
|
|
- export class SubMesh extends BaseSubMesh implements ICullable {
|
|
|
- /** the material index to use */
|
|
|
- materialIndex: number;
|
|
|
- /** vertex index start */
|
|
|
- verticesStart: number;
|
|
|
- /** vertices count */
|
|
|
- verticesCount: number;
|
|
|
- /** index start */
|
|
|
- indexStart: number;
|
|
|
- /** indices count */
|
|
|
- indexCount: number;
|
|
|
/** @hidden */
|
|
|
_linesIndexCount: number;
|
|
|
private _mesh;
|
|
|
@@ -101662,6 +101656,16 @@ declare module BABYLON {
|
|
|
*/
|
|
|
getRenderingMesh(): Mesh;
|
|
|
/**
|
|
|
+ * Returns the replacement mesh of the submesh
|
|
|
+ * @returns the replacement mesh (could be different from parent mesh)
|
|
|
+ */
|
|
|
+ getReplacementMesh(): Nullable<AbstractMesh>;
|
|
|
+ /**
|
|
|
+ * Returns the effective mesh of the submesh
|
|
|
+ * @returns the effective mesh (could be different from parent mesh)
|
|
|
+ */
|
|
|
+ getEffectiveMesh(): AbstractMesh;
|
|
|
+ /**
|
|
|
* Returns the submesh material
|
|
|
* @returns null or the current material
|
|
|
*/
|
|
|
@@ -142163,10 +142167,6 @@ declare module BABYLON {
|
|
|
};
|
|
|
};
|
|
|
}
|
|
|
- /**
|
|
|
- * @hidden
|
|
|
- */
|
|
|
- export var _IDoNeedToBeInTheBuild2: number;
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
@@ -143388,10 +143388,6 @@ declare module BABYLON {
|
|
|
*/
|
|
|
getHierarchyEmittedParticleSystems(): IParticleSystem[];
|
|
|
}
|
|
|
- /**
|
|
|
- * @hidden
|
|
|
- */
|
|
|
- export var _IDoNeedToBeInTheBuild: number;
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/** Defines the 4 color options */
|