|
@@ -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;
|
|
@@ -93751,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
|
|
@@ -101225,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
|
|
@@ -101510,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
|
|
@@ -101541,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 */
|
|
@@ -101568,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;
|