@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.
49 lines (48 loc) • 1.34 kB
TypeScript
import { NodeMaterialBlock } from "../../nodeMaterialBlock.js";
import type { NodeMaterialBuildState } from "../../nodeMaterialBuildState.js";
import type { NodeMaterialConnectionPoint } from "../../nodeMaterialBlockConnectionPoint.js";
/**
* Block used to make gl_FragCoord available
*/
export declare class FragCoordBlock extends NodeMaterialBlock {
/**
* Creates a new FragCoordBlock
* @param name defines the block name
*/
constructor(name: string);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
/**
* Gets the xy component
*/
get xy(): NodeMaterialConnectionPoint;
/**
* Gets the xyz component
*/
get xyz(): NodeMaterialConnectionPoint;
/**
* Gets the xyzw component
*/
get xyzw(): NodeMaterialConnectionPoint;
/**
* Gets the x component
*/
get x(): NodeMaterialConnectionPoint;
/**
* Gets the y component
*/
get y(): NodeMaterialConnectionPoint;
/**
* Gets the z component
*/
get z(): NodeMaterialConnectionPoint;
/**
* Gets the w component
*/
get output(): NodeMaterialConnectionPoint;
protected writeOutputs(state: NodeMaterialBuildState): string;
protected _buildBlock(state: NodeMaterialBuildState): this;
}