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.

126 lines (125 loc) 4.73 kB
import { type NodeRenderGraphConnectionPoint, type Scene, type NodeRenderGraphBuildState, type FrameGraph } from "../../../../index.js"; import { NodeRenderGraphBaseObjectRendererBlock } from "./baseObjectRendererBlock.js"; import { FrameGraphGeometryRendererTask } from "../../../Tasks/Rendering/geometryRendererTask.js"; /** * Block that render geometry of objects to a multi render target */ export declare class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBaseObjectRendererBlock { 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 * @param enableClusteredLights True (default) to enable clustered lights */ constructor(name: string, frameGraph: FrameGraph, scene: Scene, doNotChangeAspectRatio?: boolean, enableClusteredLights?: boolean); protected _createFrameGraphObject(): void; protected _saveState(state: { [key: string]: any; }): void; protected _restoreState(state: { [key: string]: any; }): void; /** 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); /** Indicates if depth pre-pass must be disabled */ get disableDepthPrePass(): boolean; set disableDepthPrePass(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 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; }