@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.
54 lines (53 loc) • 1.97 kB
TypeScript
/** This file must only contain pure code and pure imports */
import { NodeMaterialBlock } from "../../nodeMaterialBlock.js";
import { type NodeMaterialBuildState } from "../../nodeMaterialBuildState.js";
import { type NodeMaterialConnectionPoint } from "../../nodeMaterialBlockConnectionPoint.js";
import { type Mesh } from "../../../../Meshes/mesh.pure.js";
import { type Effect } from "../../../effect.pure.js";
import { type NodeMaterial } from "../../nodeMaterial.pure.js";
/**
* Block used for Reading components of the Gaussian Splatting
*/
export declare class SplatReaderBlock extends NodeMaterialBlock {
/**
* Create a new SplatReaderBlock
* @param name defines the block name
*/
constructor(name: string);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
/**
* Gets the splat index input component
*/
get splatIndex(): NodeMaterialConnectionPoint;
/**
* Gets the splatPosition output component
*/
get splatPosition(): NodeMaterialConnectionPoint;
/**
* Gets the splatColor output component
*/
get splatColor(): 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;
private _initShaderSourceAsync;
/**
* Bind data to effect
* @param effect - defines the effect to bind data to
* @param nodeMaterial - defines the node material
* @param mesh - defines the mesh to bind data for
*/
bind(effect: Effect, nodeMaterial: NodeMaterial, mesh?: Mesh): void;
protected _buildBlock(state: NodeMaterialBuildState): this | undefined;
}
/**
* Register side effects for splatReaderBlock.
* Safe to call multiple times; only the first call has an effect.
*/
export declare function RegisterSplatReaderBlock(): void;