@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.
44 lines (43 loc) • 1.32 kB
TypeScript
import { type Effect } from "../../../effect.js";
import "../../../../Rendering/depthRendererSceneComponent.js";
import { ImageSourceBlock } from "./imageSourceBlock.js";
import { type Nullable } from "../../../../types.js";
import { type Texture } from "../../../Textures/texture.js";
import { type NodeMaterial } from "../../nodeMaterial.js";
/**
* Block used to provide an depth texture for a TextureBlock
*/
export declare class DepthSourceBlock extends ImageSourceBlock {
/**
* Creates a new DepthSourceBlock
* @param name defines the block name
*/
constructor(name: string);
/**
* Gets or sets the texture associated with the node
*/
get texture(): Nullable<Texture>;
set texture(texture: Nullable<Texture>);
/**
* Bind data to effect
* @param effect - the effect to bind to
* @param nodeMaterial - the node material
*/
bind(effect: Effect, nodeMaterial: NodeMaterial): void;
/**
* Checks if the block is ready
* @returns true if ready
*/
isReady(): boolean;
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
protected _dumpPropertiesCode(): string;
/**
* Serializes the block
* @returns the serialized object
*/
serialize(): any;
}