@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.
29 lines (28 loc) • 1.44 kB
TypeScript
import { type FrameGraph, type Scene, type IThinSelectionOutlineLayerOptions, type FrameGraphTextureHandle } from "../../../index.js";
import { ThinSelectionOutlineLayer } from "../../../Layers/thinSelectionOutlineLayer.js";
import { FrameGraphBaseLayerTask } from "./baseLayerTask.js";
/**
* Task which applies a selection outline effect to a texture.
*/
export declare class FrameGraphSelectionOutlineLayerTask extends FrameGraphBaseLayerTask {
/**
* The selection outline layer object. Use this object to update the selection outline layer properties (e.g. intensity, blur kernel size).
*/
readonly layer: ThinSelectionOutlineLayer;
/**
* The depth texture to use when rendering the selection outline layer.
* It must store the scene depth in camera view space Z, normalized or not.
* If not normalized, the storeCameraSpaceZ option must be passed to the constructor.
*/
depthTexture: FrameGraphTextureHandle;
/**
* Constructs a new selection outline layer task.
* @param name Name of the task.
* @param frameGraph The frame graph this task is associated with.
* @param scene The scene to render the selection outline layer in.
* @param options Options for the selection outline layer.
*/
constructor(name: string, frameGraph: FrameGraph, scene: Scene, options?: IThinSelectionOutlineLayerOptions);
getClassName(): string;
record(): void;
}