UNPKG

@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.

140 lines (139 loc) 5.09 kB
import type { NodeRenderGraphConnectionPoint, Scene, NodeRenderGraphBuildState, FrameGraph } from "../../../../index.js"; import { NodeRenderGraphBlock } from "../../nodeRenderGraphBlock.js"; import { FrameGraphGeometryRendererTask } from "../../../Tasks/Rendering/geometryRendererTask.js"; /** * Block that render geometry of objects to a multi render target */ export declare class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBlock { protected _frameGraphTask: FrameGraphGeometryRendererTask; /** * Gets the frame graph task associated with this block */ get task(): FrameGraphGeometryRendererTask; /** * Create a new NodeRenderGraphGeometryRendererBlock * @param name defines the block name * @param frameGraph defines the hosting frame graph * @param scene defines the hosting scene * @param doNotChangeAspectRatio True (default) to not change the aspect ratio of the scene in the RTT */ constructor(name: string, frameGraph: FrameGraph, scene: Scene, doNotChangeAspectRatio?: boolean); /** Indicates if depth testing must be enabled or disabled */ get depthTest(): boolean; set depthTest(value: boolean); /** Indicates if depth writing must be enabled or disabled */ get depthWrite(): boolean; set depthWrite(value: boolean); /** True (default) to not change the aspect ratio of the scene in the RTT */ get doNotChangeAspectRatio(): boolean; set doNotChangeAspectRatio(value: boolean); /** Width of the geometry texture */ get width(): number; set width(value: number); /** Height of the geometry texture */ get height(): number; set height(value: number); /** Indicates if the geometry texture width and height are percentages or absolute values */ get sizeInPercentage(): boolean; set sizeInPercentage(value: boolean); /** Number of samples of the geometry texture */ get samples(): number; set samples(value: number); /** Indicates if culling must be reversed */ get reverseCulling(): boolean; set reverseCulling(value: boolean); /** Indicates if a mesh shouldn't be rendered when its material has depth write disabled */ get dontRenderWhenMaterialDepthWriteIsDisabled(): boolean; set dontRenderWhenMaterialDepthWriteIsDisabled(value: boolean); viewDepthFormat: number; viewDepthType: number; normalizedViewDepthFormat: number; normalizedViewDepthType: number; screenDepthFormat: number; screenDepthType: number; viewNormalFormat: number; viewNormalType: number; worldNormalFormat: number; worldNormalType: number; localPositionFormat: number; localPositionType: number; worldPositionFormat: number; worldPositionType: number; albedoFormat: number; albedoType: number; reflectivityFormat: number; reflectivityType: number; velocityFormat: number; velocityType: number; linearVelocityFormat: number; linearVelocityType: number; /** * Gets the current class name * @returns the class name */ getClassName(): string; /** * Gets the depth texture input component */ get depth(): NodeRenderGraphConnectionPoint; /** * Gets the camera input component */ get camera(): NodeRenderGraphConnectionPoint; /** * Gets the objects input component */ get objects(): NodeRenderGraphConnectionPoint; /** * Gets the output depth component */ get outputDepth(): NodeRenderGraphConnectionPoint; /** * Gets the geometry view depth component */ get geomViewDepth(): NodeRenderGraphConnectionPoint; /** * Gets the geometry normalized view depth component */ get geomNormViewDepth(): NodeRenderGraphConnectionPoint; /** * Gets the geometry screen depth component */ get geomScreenDepth(): NodeRenderGraphConnectionPoint; /** * Gets the geometry view normal component */ get geomViewNormal(): NodeRenderGraphConnectionPoint; /** * Gets the world geometry normal component */ get geomWorldNormal(): NodeRenderGraphConnectionPoint; /** * Gets the geometry local position component */ get geomLocalPosition(): NodeRenderGraphConnectionPoint; /** * Gets the geometry world position component */ get geomWorldPosition(): NodeRenderGraphConnectionPoint; /** * Gets the geometry albedo component */ get geomAlbedo(): NodeRenderGraphConnectionPoint; /** * Gets the geometry reflectivity component */ get geomReflectivity(): NodeRenderGraphConnectionPoint; /** * Gets the geometry velocity component */ get geomVelocity(): NodeRenderGraphConnectionPoint; /** * Gets the geometry linear velocity component */ get geomLinearVelocity(): NodeRenderGraphConnectionPoint; protected _buildBlock(state: NodeRenderGraphBuildState): void; protected _dumpPropertiesCode(): string; serialize(): any; _deserialize(serializationObject: any): void; }