@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
84 lines (83 loc) • 2.9 kB
TypeScript
import { NodeMaterialBlock } from "../../nodeMaterialBlock.js";
import type { NodeMaterialBuildState } from "../../nodeMaterialBuildState.js";
import { NodeMaterialBlockTargets } from "../../Enums/nodeMaterialBlockTargets.js";
import type { NodeMaterialConnectionPoint } from "../../nodeMaterialBlockConnectionPoint.js";
import type { AbstractMesh } from "../../../../Meshes/abstractMesh.js";
import type { NodeMaterialDefines, NodeMaterial } from "../../nodeMaterial.js";
import type { BaseTexture } from "../../../Textures/baseTexture.js";
import type { Nullable } from "../../../../types.js";
import type { Scene } from "../../../../scene.js";
/**
* Base block used as input for post process
*/
export declare class CurrentScreenBlock extends NodeMaterialBlock {
private _samplerName;
private _linearDefineName;
private _gammaDefineName;
private _mainUVName;
private _tempTextureRead;
/**
* Gets or sets the texture associated with the node
*/
texture: Nullable<BaseTexture>;
/**
* Gets or sets a boolean indicating if content needs to be converted to gamma space
*/
convertToGammaSpace: boolean;
/**
* Gets or sets a boolean indicating if content needs to be converted to linear space
*/
convertToLinearSpace: boolean;
/**
* Create a new CurrentScreenBlock
* @param name defines the block name
*/
constructor(name: string);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
/**
* Gets the uv input component
*/
get uv(): NodeMaterialConnectionPoint;
/**
* Gets the rgba output component
*/
get rgba(): NodeMaterialConnectionPoint;
/**
* Gets the rgb output component
*/
get rgb(): NodeMaterialConnectionPoint;
/**
* Gets the r output component
*/
get r(): NodeMaterialConnectionPoint;
/**
* Gets the g output component
*/
get g(): NodeMaterialConnectionPoint;
/**
* Gets the b output component
*/
get b(): NodeMaterialConnectionPoint;
/**
* Gets the a output component
*/
get a(): NodeMaterialConnectionPoint;
/**
* Initialize the block and prepare the context for build
* @param state defines the state that will be used for the build
*/
initialize(state: NodeMaterialBuildState): void;
get target(): NodeMaterialBlockTargets.Fragment | NodeMaterialBlockTargets.VertexAndFragment;
prepareDefines(mesh: AbstractMesh, nodeMaterial: NodeMaterial, defines: NodeMaterialDefines): void;
isReady(): boolean;
private _injectVertexCode;
private _writeTextureRead;
private _writeOutput;
protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
serialize(): any;
_deserialize(serializationObject: any, scene: Scene, rootUrl: string): void;
}