|
@@ -46377,6 +46377,7 @@ declare module "babylonjs/Gizmos/lightGizmo" {
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Gizmo } from "babylonjs/Gizmos/gizmo";
|
|
import { Gizmo } from "babylonjs/Gizmos/gizmo";
|
|
import { UtilityLayerRenderer } from "babylonjs/Rendering/utilityLayerRenderer";
|
|
import { UtilityLayerRenderer } from "babylonjs/Rendering/utilityLayerRenderer";
|
|
|
|
+ import { StandardMaterial } from "babylonjs/Materials/standardMaterial";
|
|
import { Light } from "babylonjs/Lights/light";
|
|
import { Light } from "babylonjs/Lights/light";
|
|
/**
|
|
/**
|
|
* Gizmo that enables viewing a light
|
|
* Gizmo that enables viewing a light
|
|
@@ -46397,6 +46398,10 @@ declare module "babylonjs/Gizmos/lightGizmo" {
|
|
*/
|
|
*/
|
|
light: Nullable<Light>;
|
|
light: Nullable<Light>;
|
|
/**
|
|
/**
|
|
|
|
+ * Gets the material used to render the light gizmo
|
|
|
|
+ */
|
|
|
|
+ readonly material: StandardMaterial;
|
|
|
|
+ /**
|
|
* @hidden
|
|
* @hidden
|
|
* Updates the gizmo to match the attached mesh's position/rotation
|
|
* Updates the gizmo to match the attached mesh's position/rotation
|
|
*/
|
|
*/
|
|
@@ -54381,9 +54386,29 @@ declare module "babylonjs/Materials/Node/Blocks/Dual/textureBlock" {
|
|
*/
|
|
*/
|
|
readonly uv: NodeMaterialConnectionPoint;
|
|
readonly uv: NodeMaterialConnectionPoint;
|
|
/**
|
|
/**
|
|
- * Gets the output component
|
|
|
|
|
|
+ * Gets the rgba output component
|
|
*/
|
|
*/
|
|
- readonly output: NodeMaterialConnectionPoint;
|
|
|
|
|
|
+ readonly rgba: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the rgb output component
|
|
|
|
+ */
|
|
|
|
+ readonly rgb: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the r output component
|
|
|
|
+ */
|
|
|
|
+ readonly r: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the g output component
|
|
|
|
+ */
|
|
|
|
+ readonly g: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the b output component
|
|
|
|
+ */
|
|
|
|
+ readonly b: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the a output component
|
|
|
|
+ */
|
|
|
|
+ readonly a: NodeMaterialConnectionPoint;
|
|
autoConfigure(): void;
|
|
autoConfigure(): void;
|
|
initializeDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
initializeDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
@@ -54396,11 +54421,134 @@ declare module "babylonjs/Materials/Node/Blocks/Dual/textureBlock" {
|
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+declare module "babylonjs/Materials/Node/nodeMaterialWellKnownValues" {
|
|
|
|
+ /**
|
|
|
|
+ * Enum used to define well known values e.g. values automatically provided by the system
|
|
|
|
+ */
|
|
|
|
+ export enum NodeMaterialWellKnownValues {
|
|
|
|
+ /** World */
|
|
|
|
+ World = 1,
|
|
|
|
+ /** View */
|
|
|
|
+ View = 2,
|
|
|
|
+ /** Projection */
|
|
|
|
+ Projection = 3,
|
|
|
|
+ /** ViewProjection */
|
|
|
|
+ ViewProjection = 4,
|
|
|
|
+ /** WorldView */
|
|
|
|
+ WorldView = 5,
|
|
|
|
+ /** WorldViewProjection */
|
|
|
|
+ WorldViewProjection = 6,
|
|
|
|
+ /** CameraPosition */
|
|
|
|
+ CameraPosition = 7,
|
|
|
|
+ /** Fog Color */
|
|
|
|
+ FogColor = 8
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module "babylonjs/Materials/Node/Blocks/Dual/reflectionTextureBlock" {
|
|
|
|
+ import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
|
|
+ import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
|
|
+ import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
|
|
+ import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
|
|
+ import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
|
|
+ import { NodeMaterial, NodeMaterialDefines } from "babylonjs/Materials/Node/nodeMaterial";
|
|
|
|
+ import { Effect } from "babylonjs/Materials/effect";
|
|
|
|
+ import { Mesh } from "babylonjs/Meshes/mesh";
|
|
|
|
+ import { Nullable } from "babylonjs/types";
|
|
|
|
+ import { Scene } from "babylonjs/scene";
|
|
|
|
+ /**
|
|
|
|
+ * Block used to read a reflection texture from a sampler
|
|
|
|
+ */
|
|
|
|
+ export class ReflectionTextureBlock extends NodeMaterialBlock {
|
|
|
|
+ private _define3DName;
|
|
|
|
+ private _defineCubicName;
|
|
|
|
+ private _defineExplicitName;
|
|
|
|
+ private _defineProjectionName;
|
|
|
|
+ private _defineLocalCubicName;
|
|
|
|
+ private _defineSphericalName;
|
|
|
|
+ private _definePlanarName;
|
|
|
|
+ private _defineEquirectangularName;
|
|
|
|
+ private _defineMirroredEquirectangularFixedName;
|
|
|
|
+ private _defineEquirectangularFixedName;
|
|
|
|
+ private _defineSkyboxName;
|
|
|
|
+ private _cubeSamplerName;
|
|
|
|
+ private _2DSamplerName;
|
|
|
|
+ private _positionUVWName;
|
|
|
|
+ private _directionWName;
|
|
|
|
+ private _reflectionCoordsName;
|
|
|
|
+ private _reflection2DCoordsName;
|
|
|
|
+ private _reflectionColorName;
|
|
|
|
+ private _reflectionMatrixName;
|
|
|
|
+ /**
|
|
|
|
+ * Gets or sets the texture associated with the node
|
|
|
|
+ */
|
|
|
|
+ texture: Nullable<BaseTexture>;
|
|
|
|
+ /**
|
|
|
|
+ * Create a new TextureBlock
|
|
|
|
+ * @param name defines the block name
|
|
|
|
+ */
|
|
|
|
+ constructor(name: string);
|
|
|
|
+ /**
|
|
|
|
+ * Gets the current class name
|
|
|
|
+ * @returns the class name
|
|
|
|
+ */
|
|
|
|
+ getClassName(): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world position input component
|
|
|
|
+ */
|
|
|
|
+ readonly position: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world position input component
|
|
|
|
+ */
|
|
|
|
+ readonly worldPosition: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world normal input component
|
|
|
|
+ */
|
|
|
|
+ readonly worldNormal: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world input component
|
|
|
|
+ */
|
|
|
|
+ readonly world: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the camera (or eye) position component
|
|
|
|
+ */
|
|
|
|
+ readonly cameraPosition: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the view input component
|
|
|
|
+ */
|
|
|
|
+ readonly view: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the rgb output component
|
|
|
|
+ */
|
|
|
|
+ readonly rgb: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the r output component
|
|
|
|
+ */
|
|
|
|
+ readonly r: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the g output component
|
|
|
|
+ */
|
|
|
|
+ readonly g: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the b output component
|
|
|
|
+ */
|
|
|
|
+ readonly b: NodeMaterialConnectionPoint;
|
|
|
|
+ autoConfigure(): void;
|
|
|
|
+ prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
|
|
+ isReady(): boolean;
|
|
|
|
+ bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
|
|
+ private _injectVertexCode;
|
|
|
|
+ private _writeOutput;
|
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
|
|
|
|
+ serialize(): any;
|
|
|
|
+ _deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
declare module "babylonjs/Materials/Node/nodeMaterialBuildStateSharedData" {
|
|
declare module "babylonjs/Materials/Node/nodeMaterialBuildStateSharedData" {
|
|
import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
import { InputBlock } from "babylonjs/Materials/Node/Blocks/Input/inputBlock";
|
|
import { InputBlock } from "babylonjs/Materials/Node/Blocks/Input/inputBlock";
|
|
import { TextureBlock } from "babylonjs/Materials/Node/Blocks/Dual/textureBlock";
|
|
import { TextureBlock } from "babylonjs/Materials/Node/Blocks/Dual/textureBlock";
|
|
|
|
+ import { ReflectionTextureBlock } from "babylonjs/Materials/Node/Blocks/Dual/reflectionTextureBlock";
|
|
/**
|
|
/**
|
|
* Class used to store shared data between 2 NodeMaterialBuildState
|
|
* Class used to store shared data between 2 NodeMaterialBuildState
|
|
*/
|
|
*/
|
|
@@ -54420,7 +54568,7 @@ declare module "babylonjs/Materials/Node/nodeMaterialBuildStateSharedData" {
|
|
/**
|
|
/**
|
|
* Input blocks
|
|
* Input blocks
|
|
*/
|
|
*/
|
|
- textureBlocks: TextureBlock[];
|
|
|
|
|
|
+ textureBlocks: (TextureBlock | ReflectionTextureBlock)[];
|
|
/**
|
|
/**
|
|
* Bindable blocks (Blocks that need to set data to the effect)
|
|
* Bindable blocks (Blocks that need to set data to the effect)
|
|
*/
|
|
*/
|
|
@@ -54587,7 +54735,7 @@ declare module "babylonjs/Materials/Node/nodeMaterialBuildState" {
|
|
}[];
|
|
}[];
|
|
}, storeKey?: string): void;
|
|
}, storeKey?: string): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _emitVaryingFromString(name: string, type: string, define?: string, notDefine?: boolean): void;
|
|
|
|
|
|
+ _emitVaryingFromString(name: string, type: string, define?: string, notDefine?: boolean): boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_emitUniformFromString(name: string, type: string, define?: string, notDefine?: boolean): void;
|
|
_emitUniformFromString(name: string, type: string, define?: string, notDefine?: boolean): void;
|
|
}
|
|
}
|
|
@@ -54716,6 +54864,12 @@ declare module "babylonjs/Materials/Node/nodeMaterialBlock" {
|
|
*/
|
|
*/
|
|
getFirstAvailableOutput(forBlock?: Nullable<NodeMaterialBlock>): Nullable<NodeMaterialConnectionPoint>;
|
|
getFirstAvailableOutput(forBlock?: Nullable<NodeMaterialBlock>): Nullable<NodeMaterialConnectionPoint>;
|
|
/**
|
|
/**
|
|
|
|
+ * Gets the sibling of the given output
|
|
|
|
+ * @param current defines the current output
|
|
|
|
+ * @returns the next output in the list or null
|
|
|
|
+ */
|
|
|
|
+ getSiblingOutput(current: NodeMaterialConnectionPoint): Nullable<NodeMaterialConnectionPoint>;
|
|
|
|
+ /**
|
|
* Connect current block with another block
|
|
* Connect current block with another block
|
|
* @param other defines the block to connect with
|
|
* @param other defines the block to connect with
|
|
* @param options define the various options to help pick the right connections
|
|
* @param options define the various options to help pick the right connections
|
|
@@ -54809,29 +54963,6 @@ declare module "babylonjs/Materials/Node/NodeMaterialBlockConnectionPointMode" {
|
|
Undefined = 3
|
|
Undefined = 3
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-declare module "babylonjs/Materials/Node/nodeMaterialWellKnownValues" {
|
|
|
|
- /**
|
|
|
|
- * Enum used to define well known values e.g. values automatically provided by the system
|
|
|
|
- */
|
|
|
|
- export enum NodeMaterialWellKnownValues {
|
|
|
|
- /** World */
|
|
|
|
- World = 1,
|
|
|
|
- /** View */
|
|
|
|
- View = 2,
|
|
|
|
- /** Projection */
|
|
|
|
- Projection = 3,
|
|
|
|
- /** ViewProjection */
|
|
|
|
- ViewProjection = 4,
|
|
|
|
- /** WorldView */
|
|
|
|
- WorldView = 5,
|
|
|
|
- /** WorldViewProjection */
|
|
|
|
- WorldViewProjection = 6,
|
|
|
|
- /** CameraPosition */
|
|
|
|
- CameraPosition = 7,
|
|
|
|
- /** Fog Color */
|
|
|
|
- FogColor = 8
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
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";
|
|
@@ -55620,6 +55751,7 @@ declare module "babylonjs/Materials/Node/Blocks/Dual/index" {
|
|
export * from "babylonjs/Materials/Node/Blocks/Dual/fogBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Dual/fogBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Dual/lightBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Dual/lightBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Dual/textureBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Dual/textureBlock";
|
|
|
|
+ export * from "babylonjs/Materials/Node/Blocks/Dual/reflectionTextureBlock";
|
|
}
|
|
}
|
|
declare module "babylonjs/Materials/Node/Blocks/Input/index" {
|
|
declare module "babylonjs/Materials/Node/Blocks/Input/index" {
|
|
export * from "babylonjs/Materials/Node/Blocks/Input/inputBlock";
|
|
export * from "babylonjs/Materials/Node/Blocks/Input/inputBlock";
|
|
@@ -108820,6 +108952,10 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
light: Nullable<Light>;
|
|
light: Nullable<Light>;
|
|
/**
|
|
/**
|
|
|
|
+ * Gets the material used to render the light gizmo
|
|
|
|
+ */
|
|
|
|
+ readonly material: StandardMaterial;
|
|
|
|
+ /**
|
|
* @hidden
|
|
* @hidden
|
|
* Updates the gizmo to match the attached mesh's position/rotation
|
|
* Updates the gizmo to match the attached mesh's position/rotation
|
|
*/
|
|
*/
|
|
@@ -116211,9 +116347,29 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
readonly uv: NodeMaterialConnectionPoint;
|
|
readonly uv: NodeMaterialConnectionPoint;
|
|
/**
|
|
/**
|
|
- * Gets the output component
|
|
|
|
|
|
+ * Gets the rgba output component
|
|
*/
|
|
*/
|
|
- readonly output: NodeMaterialConnectionPoint;
|
|
|
|
|
|
+ readonly rgba: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the rgb output component
|
|
|
|
+ */
|
|
|
|
+ readonly rgb: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the r output component
|
|
|
|
+ */
|
|
|
|
+ readonly r: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the g output component
|
|
|
|
+ */
|
|
|
|
+ readonly g: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the b output component
|
|
|
|
+ */
|
|
|
|
+ readonly b: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the a output component
|
|
|
|
+ */
|
|
|
|
+ readonly a: NodeMaterialConnectionPoint;
|
|
autoConfigure(): void;
|
|
autoConfigure(): void;
|
|
initializeDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
initializeDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines, useInstances?: boolean): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
@@ -116228,6 +116384,118 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
|
|
+ * Enum used to define well known values e.g. values automatically provided by the system
|
|
|
|
+ */
|
|
|
|
+ export enum NodeMaterialWellKnownValues {
|
|
|
|
+ /** World */
|
|
|
|
+ World = 1,
|
|
|
|
+ /** View */
|
|
|
|
+ View = 2,
|
|
|
|
+ /** Projection */
|
|
|
|
+ Projection = 3,
|
|
|
|
+ /** ViewProjection */
|
|
|
|
+ ViewProjection = 4,
|
|
|
|
+ /** WorldView */
|
|
|
|
+ WorldView = 5,
|
|
|
|
+ /** WorldViewProjection */
|
|
|
|
+ WorldViewProjection = 6,
|
|
|
|
+ /** CameraPosition */
|
|
|
|
+ CameraPosition = 7,
|
|
|
|
+ /** Fog Color */
|
|
|
|
+ FogColor = 8
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ /**
|
|
|
|
+ * Block used to read a reflection texture from a sampler
|
|
|
|
+ */
|
|
|
|
+ export class ReflectionTextureBlock extends NodeMaterialBlock {
|
|
|
|
+ private _define3DName;
|
|
|
|
+ private _defineCubicName;
|
|
|
|
+ private _defineExplicitName;
|
|
|
|
+ private _defineProjectionName;
|
|
|
|
+ private _defineLocalCubicName;
|
|
|
|
+ private _defineSphericalName;
|
|
|
|
+ private _definePlanarName;
|
|
|
|
+ private _defineEquirectangularName;
|
|
|
|
+ private _defineMirroredEquirectangularFixedName;
|
|
|
|
+ private _defineEquirectangularFixedName;
|
|
|
|
+ private _defineSkyboxName;
|
|
|
|
+ private _cubeSamplerName;
|
|
|
|
+ private _2DSamplerName;
|
|
|
|
+ private _positionUVWName;
|
|
|
|
+ private _directionWName;
|
|
|
|
+ private _reflectionCoordsName;
|
|
|
|
+ private _reflection2DCoordsName;
|
|
|
|
+ private _reflectionColorName;
|
|
|
|
+ private _reflectionMatrixName;
|
|
|
|
+ /**
|
|
|
|
+ * Gets or sets the texture associated with the node
|
|
|
|
+ */
|
|
|
|
+ texture: Nullable<BaseTexture>;
|
|
|
|
+ /**
|
|
|
|
+ * Create a new TextureBlock
|
|
|
|
+ * @param name defines the block name
|
|
|
|
+ */
|
|
|
|
+ constructor(name: string);
|
|
|
|
+ /**
|
|
|
|
+ * Gets the current class name
|
|
|
|
+ * @returns the class name
|
|
|
|
+ */
|
|
|
|
+ getClassName(): string;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world position input component
|
|
|
|
+ */
|
|
|
|
+ readonly position: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world position input component
|
|
|
|
+ */
|
|
|
|
+ readonly worldPosition: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world normal input component
|
|
|
|
+ */
|
|
|
|
+ readonly worldNormal: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the world input component
|
|
|
|
+ */
|
|
|
|
+ readonly world: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the camera (or eye) position component
|
|
|
|
+ */
|
|
|
|
+ readonly cameraPosition: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the view input component
|
|
|
|
+ */
|
|
|
|
+ readonly view: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the rgb output component
|
|
|
|
+ */
|
|
|
|
+ readonly rgb: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the r output component
|
|
|
|
+ */
|
|
|
|
+ readonly r: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the g output component
|
|
|
|
+ */
|
|
|
|
+ readonly g: NodeMaterialConnectionPoint;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the b output component
|
|
|
|
+ */
|
|
|
|
+ readonly b: NodeMaterialConnectionPoint;
|
|
|
|
+ autoConfigure(): void;
|
|
|
|
+ prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
|
|
|
|
+ isReady(): boolean;
|
|
|
|
+ bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
|
|
|
|
+ private _injectVertexCode;
|
|
|
|
+ private _writeOutput;
|
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
|
|
|
|
+ serialize(): any;
|
|
|
|
+ _deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ /**
|
|
* Class used to store shared data between 2 NodeMaterialBuildState
|
|
* Class used to store shared data between 2 NodeMaterialBuildState
|
|
*/
|
|
*/
|
|
export class NodeMaterialBuildStateSharedData {
|
|
export class NodeMaterialBuildStateSharedData {
|
|
@@ -116246,7 +116514,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Input blocks
|
|
* Input blocks
|
|
*/
|
|
*/
|
|
- textureBlocks: TextureBlock[];
|
|
|
|
|
|
+ textureBlocks: (TextureBlock | ReflectionTextureBlock)[];
|
|
/**
|
|
/**
|
|
* Bindable blocks (Blocks that need to set data to the effect)
|
|
* Bindable blocks (Blocks that need to set data to the effect)
|
|
*/
|
|
*/
|
|
@@ -116410,7 +116678,7 @@ declare module BABYLON {
|
|
}[];
|
|
}[];
|
|
}, storeKey?: string): void;
|
|
}, storeKey?: string): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _emitVaryingFromString(name: string, type: string, define?: string, notDefine?: boolean): void;
|
|
|
|
|
|
+ _emitVaryingFromString(name: string, type: string, define?: string, notDefine?: boolean): boolean;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_emitUniformFromString(name: string, type: string, define?: string, notDefine?: boolean): void;
|
|
_emitUniformFromString(name: string, type: string, define?: string, notDefine?: boolean): void;
|
|
}
|
|
}
|
|
@@ -116529,6 +116797,12 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
getFirstAvailableOutput(forBlock?: Nullable<NodeMaterialBlock>): Nullable<NodeMaterialConnectionPoint>;
|
|
getFirstAvailableOutput(forBlock?: Nullable<NodeMaterialBlock>): Nullable<NodeMaterialConnectionPoint>;
|
|
/**
|
|
/**
|
|
|
|
+ * Gets the sibling of the given output
|
|
|
|
+ * @param current defines the current output
|
|
|
|
+ * @returns the next output in the list or null
|
|
|
|
+ */
|
|
|
|
+ getSiblingOutput(current: NodeMaterialConnectionPoint): Nullable<NodeMaterialConnectionPoint>;
|
|
|
|
+ /**
|
|
* Connect current block with another block
|
|
* Connect current block with another block
|
|
* @param other defines the block to connect with
|
|
* @param other defines the block to connect with
|
|
* @param options define the various options to help pick the right connections
|
|
* @param options define the various options to help pick the right connections
|
|
@@ -116624,29 +116898,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
- * Enum used to define well known values e.g. values automatically provided by the system
|
|
|
|
- */
|
|
|
|
- export enum NodeMaterialWellKnownValues {
|
|
|
|
- /** World */
|
|
|
|
- World = 1,
|
|
|
|
- /** View */
|
|
|
|
- View = 2,
|
|
|
|
- /** Projection */
|
|
|
|
- Projection = 3,
|
|
|
|
- /** ViewProjection */
|
|
|
|
- ViewProjection = 4,
|
|
|
|
- /** WorldView */
|
|
|
|
- WorldView = 5,
|
|
|
|
- /** WorldViewProjection */
|
|
|
|
- WorldViewProjection = 6,
|
|
|
|
- /** CameraPosition */
|
|
|
|
- CameraPosition = 7,
|
|
|
|
- /** Fog Color */
|
|
|
|
- FogColor = 8
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-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 {
|