|
@@ -53525,14 +53525,14 @@ declare module "babylonjs/Materials/Node/Optimizers/nodeMaterialOptimizer" {
|
|
optimize(vertexOutputNodes: NodeMaterialBlock[], fragmentOutputNodes: NodeMaterialBlock[]): void;
|
|
optimize(vertexOutputNodes: NodeMaterialBlock[], fragmentOutputNodes: NodeMaterialBlock[]): void;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-declare module "babylonjs/Materials/Node/Blocks/vectorTransformBlock" {
|
|
|
|
|
|
+declare module "babylonjs/Materials/Node/Blocks/transformBlock" {
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
/**
|
|
/**
|
|
* Block used to transform a vector (2, 3 or 4) with a matrix. It will generate a Vector4
|
|
* Block used to transform a vector (2, 3 or 4) with a matrix. It will generate a Vector4
|
|
*/
|
|
*/
|
|
- export class VectorTransformBlock extends NodeMaterialBlock {
|
|
|
|
|
|
+ export class TransformBlock extends NodeMaterialBlock {
|
|
/**
|
|
/**
|
|
* Defines the value to use to complement W value to transform it to a Vector4
|
|
* Defines the value to use to complement W value to transform it to a Vector4
|
|
*/
|
|
*/
|
|
@@ -53542,7 +53542,7 @@ declare module "babylonjs/Materials/Node/Blocks/vectorTransformBlock" {
|
|
*/
|
|
*/
|
|
complementZ: number;
|
|
complementZ: number;
|
|
/**
|
|
/**
|
|
- * Creates a new VectorTransformBlock
|
|
|
|
|
|
+ * Creates a new TransformBlock
|
|
* @param name defines the block name
|
|
* @param name defines the block name
|
|
*/
|
|
*/
|
|
constructor(name: string);
|
|
constructor(name: string);
|
|
@@ -53866,6 +53866,12 @@ declare module "babylonjs/Materials/Node/nodeMaterial" {
|
|
*/
|
|
*/
|
|
serialize(): any;
|
|
serialize(): any;
|
|
/**
|
|
/**
|
|
|
|
+ * Clear the current graph and load a new one from a serialization object
|
|
|
|
+ * @param source defines the JSON representation of the material
|
|
|
|
+ * @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
|
|
+ */
|
|
|
|
+ loadFromSerialization(source: any, rootUrl?: string): void;
|
|
|
|
+ /**
|
|
* Creates a node material from parsed material data
|
|
* Creates a node material from parsed material data
|
|
* @param source defines the JSON representation of the material
|
|
* @param source defines the JSON representation of the material
|
|
* @param scene defines the hosting scene
|
|
* @param scene defines the hosting scene
|
|
@@ -54367,6 +54373,74 @@ declare module "babylonjs/Materials/Node/nodeMaterialWellKnownValues" {
|
|
FogColor = 8
|
|
FogColor = 8
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+declare module "babylonjs/Maths/math.vertexFormat" {
|
|
|
|
+ import { Vector3, Vector2 } from "babylonjs/Maths/math.vector";
|
|
|
|
+ /**
|
|
|
|
+ * Contains position and normal vectors for a vertex
|
|
|
|
+ */
|
|
|
|
+ export class PositionNormalVertex {
|
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
+ position: Vector3;
|
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
+ normal: Vector3;
|
|
|
|
+ /**
|
|
|
|
+ * Creates a PositionNormalVertex
|
|
|
|
+ * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
|
+ * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
|
+ */
|
|
|
|
+ constructor(
|
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
+ position?: Vector3,
|
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
+ normal?: Vector3);
|
|
|
|
+ /**
|
|
|
|
+ * Clones the PositionNormalVertex
|
|
|
|
+ * @returns the cloned PositionNormalVertex
|
|
|
|
+ */
|
|
|
|
+ clone(): PositionNormalVertex;
|
|
|
|
+ }
|
|
|
|
+ /**
|
|
|
|
+ * Contains position, normal and uv vectors for a vertex
|
|
|
|
+ */
|
|
|
|
+ export class PositionNormalTextureVertex {
|
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
+ position: Vector3;
|
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
+ normal: Vector3;
|
|
|
|
+ /** the uv of the vertex (default: 0,0) */
|
|
|
|
+ uv: Vector2;
|
|
|
|
+ /**
|
|
|
|
+ * Creates a PositionNormalTextureVertex
|
|
|
|
+ * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
|
+ * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
|
+ * @param uv the uv of the vertex (default: 0,0)
|
|
|
|
+ */
|
|
|
|
+ constructor(
|
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
+ position?: Vector3,
|
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
+ normal?: Vector3,
|
|
|
|
+ /** the uv of the vertex (default: 0,0) */
|
|
|
|
+ uv?: Vector2);
|
|
|
|
+ /**
|
|
|
|
+ * Clones the PositionNormalTextureVertex
|
|
|
|
+ * @returns the cloned PositionNormalTextureVertex
|
|
|
|
+ */
|
|
|
|
+ clone(): PositionNormalTextureVertex;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module "babylonjs/Maths/math" {
|
|
|
|
+ export * from "babylonjs/Maths/math.axis";
|
|
|
|
+ export * from "babylonjs/Maths/math.color";
|
|
|
|
+ export * from "babylonjs/Maths/math.constants";
|
|
|
|
+ export * from "babylonjs/Maths/math.frustum";
|
|
|
|
+ export * from "babylonjs/Maths/math.path";
|
|
|
|
+ export * from "babylonjs/Maths/math.plane";
|
|
|
|
+ export * from "babylonjs/Maths/math.size";
|
|
|
|
+ export * from "babylonjs/Maths/math.vector";
|
|
|
|
+ export * from "babylonjs/Maths/math.vertexFormat";
|
|
|
|
+ export * from "babylonjs/Maths/math.viewport";
|
|
|
|
+}
|
|
declare module "babylonjs/Materials/Node/Blocks/Input/inputBlock" {
|
|
declare module "babylonjs/Materials/Node/Blocks/Input/inputBlock" {
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
import { NodeMaterialBlockConnectionPointTypes } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes";
|
|
import { NodeMaterialBlockConnectionPointTypes } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes";
|
|
@@ -55267,7 +55341,7 @@ declare module "babylonjs/Materials/Node/Blocks/index" {
|
|
export * from "babylonjs/Materials/Node/Blocks/clampBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/clampBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/crossBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/crossBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/dotBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/dotBlock";
|
|
- export * from "babylonjs/Materials/Node/Blocks/vectorTransformBlock";
|
|
|
|
|
|
+ export * from "babylonjs/Materials/Node/Blocks/transformBlock";
|
|
}
|
|
}
|
|
declare module "babylonjs/Materials/Node/Optimizers/index" {
|
|
declare module "babylonjs/Materials/Node/Optimizers/index" {
|
|
export * from "babylonjs/Materials/Node/Optimizers/nodeMaterialOptimizer";
|
|
export * from "babylonjs/Materials/Node/Optimizers/nodeMaterialOptimizer";
|
|
@@ -55424,74 +55498,6 @@ declare module "babylonjs/Materials/index" {
|
|
export * from "babylonjs/Materials/Node/index";
|
|
export * from "babylonjs/Materials/Node/index";
|
|
export * from "babylonjs/Materials/effectRenderer";
|
|
export * from "babylonjs/Materials/effectRenderer";
|
|
}
|
|
}
|
|
-declare module "babylonjs/Maths/math.vertexFormat" {
|
|
|
|
- import { Vector3, Vector2 } from "babylonjs/Maths/math.vector";
|
|
|
|
- /**
|
|
|
|
- * Contains position and normal vectors for a vertex
|
|
|
|
- */
|
|
|
|
- export class PositionNormalVertex {
|
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
- position: Vector3;
|
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
- normal: Vector3;
|
|
|
|
- /**
|
|
|
|
- * Creates a PositionNormalVertex
|
|
|
|
- * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
|
- * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
|
- */
|
|
|
|
- constructor(
|
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
- position?: Vector3,
|
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
- normal?: Vector3);
|
|
|
|
- /**
|
|
|
|
- * Clones the PositionNormalVertex
|
|
|
|
- * @returns the cloned PositionNormalVertex
|
|
|
|
- */
|
|
|
|
- clone(): PositionNormalVertex;
|
|
|
|
- }
|
|
|
|
- /**
|
|
|
|
- * Contains position, normal and uv vectors for a vertex
|
|
|
|
- */
|
|
|
|
- export class PositionNormalTextureVertex {
|
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
- position: Vector3;
|
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
- normal: Vector3;
|
|
|
|
- /** the uv of the vertex (default: 0,0) */
|
|
|
|
- uv: Vector2;
|
|
|
|
- /**
|
|
|
|
- * Creates a PositionNormalTextureVertex
|
|
|
|
- * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
|
- * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
|
- * @param uv the uv of the vertex (default: 0,0)
|
|
|
|
- */
|
|
|
|
- constructor(
|
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
- position?: Vector3,
|
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
- normal?: Vector3,
|
|
|
|
- /** the uv of the vertex (default: 0,0) */
|
|
|
|
- uv?: Vector2);
|
|
|
|
- /**
|
|
|
|
- * Clones the PositionNormalTextureVertex
|
|
|
|
- * @returns the cloned PositionNormalTextureVertex
|
|
|
|
- */
|
|
|
|
- clone(): PositionNormalTextureVertex;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-declare module "babylonjs/Maths/math" {
|
|
|
|
- export * from "babylonjs/Maths/math.axis";
|
|
|
|
- export * from "babylonjs/Maths/math.color";
|
|
|
|
- export * from "babylonjs/Maths/math.constants";
|
|
|
|
- export * from "babylonjs/Maths/math.frustum";
|
|
|
|
- export * from "babylonjs/Maths/math.path";
|
|
|
|
- export * from "babylonjs/Maths/math.plane";
|
|
|
|
- export * from "babylonjs/Maths/math.size";
|
|
|
|
- export * from "babylonjs/Maths/math.vector";
|
|
|
|
- export * from "babylonjs/Maths/math.vertexFormat";
|
|
|
|
- export * from "babylonjs/Maths/math.viewport";
|
|
|
|
-}
|
|
|
|
declare module "babylonjs/Maths/index" {
|
|
declare module "babylonjs/Maths/index" {
|
|
export * from "babylonjs/Maths/math.scalar";
|
|
export * from "babylonjs/Maths/math.scalar";
|
|
export * from "babylonjs/Maths/math";
|
|
export * from "babylonjs/Maths/math";
|
|
@@ -114817,7 +114823,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Block used to transform a vector (2, 3 or 4) with a matrix. It will generate a Vector4
|
|
* Block used to transform a vector (2, 3 or 4) with a matrix. It will generate a Vector4
|
|
*/
|
|
*/
|
|
- export class VectorTransformBlock extends NodeMaterialBlock {
|
|
|
|
|
|
+ export class TransformBlock extends NodeMaterialBlock {
|
|
/**
|
|
/**
|
|
* Defines the value to use to complement W value to transform it to a Vector4
|
|
* Defines the value to use to complement W value to transform it to a Vector4
|
|
*/
|
|
*/
|
|
@@ -114827,7 +114833,7 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
complementZ: number;
|
|
complementZ: number;
|
|
/**
|
|
/**
|
|
- * Creates a new VectorTransformBlock
|
|
|
|
|
|
+ * Creates a new TransformBlock
|
|
* @param name defines the block name
|
|
* @param name defines the block name
|
|
*/
|
|
*/
|
|
constructor(name: string);
|
|
constructor(name: string);
|
|
@@ -115132,6 +115138,12 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
serialize(): any;
|
|
serialize(): any;
|
|
/**
|
|
/**
|
|
|
|
+ * Clear the current graph and load a new one from a serialization object
|
|
|
|
+ * @param source defines the JSON representation of the material
|
|
|
|
+ * @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
|
|
+ */
|
|
|
|
+ loadFromSerialization(source: any, rootUrl?: string): void;
|
|
|
|
+ /**
|
|
* Creates a node material from parsed material data
|
|
* Creates a node material from parsed material data
|
|
* @param source defines the JSON representation of the material
|
|
* @param source defines the JSON representation of the material
|
|
* @param scene defines the hosting scene
|
|
* @param scene defines the hosting scene
|
|
@@ -115608,6 +115620,61 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
|
|
+ * Contains position and normal vectors for a vertex
|
|
|
|
+ */
|
|
|
|
+ export class PositionNormalVertex {
|
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
+ position: Vector3;
|
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
+ normal: Vector3;
|
|
|
|
+ /**
|
|
|
|
+ * Creates a PositionNormalVertex
|
|
|
|
+ * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
|
+ * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
|
+ */
|
|
|
|
+ constructor(
|
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
+ position?: Vector3,
|
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
+ normal?: Vector3);
|
|
|
|
+ /**
|
|
|
|
+ * Clones the PositionNormalVertex
|
|
|
|
+ * @returns the cloned PositionNormalVertex
|
|
|
|
+ */
|
|
|
|
+ clone(): PositionNormalVertex;
|
|
|
|
+ }
|
|
|
|
+ /**
|
|
|
|
+ * Contains position, normal and uv vectors for a vertex
|
|
|
|
+ */
|
|
|
|
+ export class PositionNormalTextureVertex {
|
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
+ position: Vector3;
|
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
+ normal: Vector3;
|
|
|
|
+ /** the uv of the vertex (default: 0,0) */
|
|
|
|
+ uv: Vector2;
|
|
|
|
+ /**
|
|
|
|
+ * Creates a PositionNormalTextureVertex
|
|
|
|
+ * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
|
+ * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
|
+ * @param uv the uv of the vertex (default: 0,0)
|
|
|
|
+ */
|
|
|
|
+ constructor(
|
|
|
|
+ /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
+ position?: Vector3,
|
|
|
|
+ /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
+ normal?: Vector3,
|
|
|
|
+ /** the uv of the vertex (default: 0,0) */
|
|
|
|
+ uv?: Vector2);
|
|
|
|
+ /**
|
|
|
|
+ * Clones the PositionNormalTextureVertex
|
|
|
|
+ * @returns the cloned PositionNormalTextureVertex
|
|
|
|
+ */
|
|
|
|
+ clone(): PositionNormalTextureVertex;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ /**
|
|
* Block used to expose an input value
|
|
* Block used to expose an input value
|
|
*/
|
|
*/
|
|
export class InputBlock extends NodeMaterialBlock {
|
|
export class InputBlock extends NodeMaterialBlock {
|
|
@@ -116502,61 +116569,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
- * Contains position and normal vectors for a vertex
|
|
|
|
- */
|
|
|
|
- export class PositionNormalVertex {
|
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
- position: Vector3;
|
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
- normal: Vector3;
|
|
|
|
- /**
|
|
|
|
- * Creates a PositionNormalVertex
|
|
|
|
- * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
|
- * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
|
- */
|
|
|
|
- constructor(
|
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
- position?: Vector3,
|
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
- normal?: Vector3);
|
|
|
|
- /**
|
|
|
|
- * Clones the PositionNormalVertex
|
|
|
|
- * @returns the cloned PositionNormalVertex
|
|
|
|
- */
|
|
|
|
- clone(): PositionNormalVertex;
|
|
|
|
- }
|
|
|
|
- /**
|
|
|
|
- * Contains position, normal and uv vectors for a vertex
|
|
|
|
- */
|
|
|
|
- export class PositionNormalTextureVertex {
|
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
- position: Vector3;
|
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
- normal: Vector3;
|
|
|
|
- /** the uv of the vertex (default: 0,0) */
|
|
|
|
- uv: Vector2;
|
|
|
|
- /**
|
|
|
|
- * Creates a PositionNormalTextureVertex
|
|
|
|
- * @param position the position of the vertex (defaut: 0,0,0)
|
|
|
|
- * @param normal the normal of the vertex (defaut: 0,1,0)
|
|
|
|
- * @param uv the uv of the vertex (default: 0,0)
|
|
|
|
- */
|
|
|
|
- constructor(
|
|
|
|
- /** the position of the vertex (defaut: 0,0,0) */
|
|
|
|
- position?: Vector3,
|
|
|
|
- /** the normal of the vertex (defaut: 0,1,0) */
|
|
|
|
- normal?: Vector3,
|
|
|
|
- /** the uv of the vertex (default: 0,0) */
|
|
|
|
- uv?: Vector2);
|
|
|
|
- /**
|
|
|
|
- * Clones the PositionNormalTextureVertex
|
|
|
|
- * @returns the cloned PositionNormalTextureVertex
|
|
|
|
- */
|
|
|
|
- clone(): PositionNormalTextureVertex;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-declare module BABYLON {
|
|
|
|
- /**
|
|
|
|
* Helper class to push actions to a pool of workers.
|
|
* Helper class to push actions to a pool of workers.
|
|
*/
|
|
*/
|
|
export class WorkerPool implements IDisposable {
|
|
export class WorkerPool implements IDisposable {
|