|
@@ -58116,6 +58116,74 @@ declare module "babylonjs/Materials/Node/Blocks/waveBlock" {
|
|
|
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
|
}
|
|
|
}
|
|
|
+declare module "babylonjs/Maths/index" {
|
|
|
+ export * from "babylonjs/Maths/math.scalar";
|
|
|
+ export * from "babylonjs/Maths/math";
|
|
|
+ export * from "babylonjs/Maths/sphericalPolynomial";
|
|
|
+}
|
|
|
+declare module "babylonjs/Materials/Node/Blocks/gradientBlock" {
|
|
|
+ import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
|
+ import { NodeMaterialBuildState } from "babylonjs/Materials/Node/nodeMaterialBuildState";
|
|
|
+ import { NodeMaterialConnectionPoint } from "babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
|
+ import { Color3 } from "babylonjs/Maths/index";
|
|
|
+ import { Scene } from "babylonjs/scene";
|
|
|
+ /**
|
|
|
+ * Class used to store a color step for the GradientBlock
|
|
|
+ */
|
|
|
+ export class GradientBlockColorStep {
|
|
|
+ /**
|
|
|
+ * Gets or sets a value indicating which step this color is associated with (between 0 and 1)
|
|
|
+ */
|
|
|
+ step: number;
|
|
|
+ /**
|
|
|
+ * Gets or sets the color associated with this step
|
|
|
+ */
|
|
|
+ color: Color3;
|
|
|
+ /**
|
|
|
+ * Creates a new GradientBlockColorStep
|
|
|
+ * @param step defines a value indicating which step this color is associated with (between 0 and 1)
|
|
|
+ * @param color defines the color associated with this step
|
|
|
+ */
|
|
|
+ constructor(
|
|
|
+ /**
|
|
|
+ * Gets or sets a value indicating which step this color is associated with (between 0 and 1)
|
|
|
+ */
|
|
|
+ step: number,
|
|
|
+ /**
|
|
|
+ * Gets or sets the color associated with this step
|
|
|
+ */
|
|
|
+ color: Color3);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Block used to return a color from a gradient based on an input value between 0 and 1
|
|
|
+ */
|
|
|
+ export class GradientBlock extends NodeMaterialBlock {
|
|
|
+ colorSteps: GradientBlockColorStep[];
|
|
|
+ /**
|
|
|
+ * Creates a new GradientBlock
|
|
|
+ * @param name defines the block name
|
|
|
+ */
|
|
|
+ constructor(name: string);
|
|
|
+ /**
|
|
|
+ * Gets the current class name
|
|
|
+ * @returns the class name
|
|
|
+ */
|
|
|
+ getClassName(): string;
|
|
|
+ /**
|
|
|
+ * Gets the gradient input component
|
|
|
+ */
|
|
|
+ readonly gradient: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the output component
|
|
|
+ */
|
|
|
+ readonly output: NodeMaterialConnectionPoint;
|
|
|
+ private _writeColorConstant;
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
|
|
|
+ serialize(): any;
|
|
|
+ _deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
|
+ protected _dumpPropertiesCode(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
declare module "babylonjs/Materials/Node/Blocks/index" {
|
|
|
export * from "babylonjs/Materials/Node/Blocks/Vertex/index";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/Fragment/index";
|
|
@@ -58155,6 +58223,7 @@ declare module "babylonjs/Materials/Node/Blocks/index" {
|
|
|
export * from "babylonjs/Materials/Node/Blocks/replaceColorBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/posterizeBlock";
|
|
|
export * from "babylonjs/Materials/Node/Blocks/waveBlock";
|
|
|
+ export * from "babylonjs/Materials/Node/Blocks/gradientBlock";
|
|
|
}
|
|
|
declare module "babylonjs/Materials/Node/Optimizers/index" {
|
|
|
export * from "babylonjs/Materials/Node/Optimizers/nodeMaterialOptimizer";
|
|
@@ -58316,11 +58385,6 @@ declare module "babylonjs/Materials/index" {
|
|
|
export * from "babylonjs/Materials/Node/index";
|
|
|
export * from "babylonjs/Materials/effectRenderer";
|
|
|
}
|
|
|
-declare module "babylonjs/Maths/index" {
|
|
|
- export * from "babylonjs/Maths/math.scalar";
|
|
|
- export * from "babylonjs/Maths/math";
|
|
|
- export * from "babylonjs/Maths/sphericalPolynomial";
|
|
|
-}
|
|
|
declare module "babylonjs/Misc/workerPool" {
|
|
|
import { IDisposable } from "babylonjs/scene";
|
|
|
/**
|
|
@@ -122005,6 +122069,64 @@ declare module BABYLON {
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
+ * Class used to store a color step for the GradientBlock
|
|
|
+ */
|
|
|
+ export class GradientBlockColorStep {
|
|
|
+ /**
|
|
|
+ * Gets or sets a value indicating which step this color is associated with (between 0 and 1)
|
|
|
+ */
|
|
|
+ step: number;
|
|
|
+ /**
|
|
|
+ * Gets or sets the color associated with this step
|
|
|
+ */
|
|
|
+ color: Color3;
|
|
|
+ /**
|
|
|
+ * Creates a new GradientBlockColorStep
|
|
|
+ * @param step defines a value indicating which step this color is associated with (between 0 and 1)
|
|
|
+ * @param color defines the color associated with this step
|
|
|
+ */
|
|
|
+ constructor(
|
|
|
+ /**
|
|
|
+ * Gets or sets a value indicating which step this color is associated with (between 0 and 1)
|
|
|
+ */
|
|
|
+ step: number,
|
|
|
+ /**
|
|
|
+ * Gets or sets the color associated with this step
|
|
|
+ */
|
|
|
+ color: Color3);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Block used to return a color from a gradient based on an input value between 0 and 1
|
|
|
+ */
|
|
|
+ export class GradientBlock extends NodeMaterialBlock {
|
|
|
+ colorSteps: GradientBlockColorStep[];
|
|
|
+ /**
|
|
|
+ * Creates a new GradientBlock
|
|
|
+ * @param name defines the block name
|
|
|
+ */
|
|
|
+ constructor(name: string);
|
|
|
+ /**
|
|
|
+ * Gets the current class name
|
|
|
+ * @returns the class name
|
|
|
+ */
|
|
|
+ getClassName(): string;
|
|
|
+ /**
|
|
|
+ * Gets the gradient input component
|
|
|
+ */
|
|
|
+ readonly gradient: NodeMaterialConnectionPoint;
|
|
|
+ /**
|
|
|
+ * Gets the output component
|
|
|
+ */
|
|
|
+ readonly output: NodeMaterialConnectionPoint;
|
|
|
+ private _writeColorConstant;
|
|
|
+ protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
|
|
|
+ serialize(): any;
|
|
|
+ _deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
|
|
|
+ protected _dumpPropertiesCode(): string;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON {
|
|
|
+ /**
|
|
|
* Effect Render Options
|
|
|
*/
|
|
|
export interface IEffectRendererOptions {
|