polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
44 lines (43 loc) • 2.31 kB
TypeScript
/**
* Allows to feed a vertex attribute into the shader
*
*
*/
import { TypedGlNode, BaseGlNodeType } from './_Base';
import { GlConnectionPointType, BaseGlConnectionPoint } from '../utils/io/connections/Gl';
import { ShadersCollectionController } from './code/utils/ShadersCollectionController';
export declare const ATTRIBUTE_NODE_AVAILABLE_GL_TYPES: GlConnectionPointType[];
import { NodeParamsConfig } from '../utils/params/ParamsConfig';
import { GlNodeType } from '../../poly/NodeContext';
declare class AttributeGlParamsConfig extends NodeParamsConfig {
/** @param attribute name */
name: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.STRING>;
/** @param attribute type (float, vec2, vec3, vec4) */
type: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>;
/** @param allows to export the attribute to a material (when used inside a particles system) */
texport_when_connected: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>;
/** @param allows to export the attribute to a material (when used inside a particles system) */
export_when_connected: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>;
}
export declare class AttributeGlNode extends TypedGlNode<AttributeGlParamsConfig> {
params_config: AttributeGlParamsConfig;
static type(): Readonly<GlNodeType.ATTRIBUTE>;
static readonly INPUT_NAME = "in";
static readonly OUTPUT_NAME = "val";
private _on_create_set_name_if_none_bound;
initializeNode(): void;
get input_name(): string;
get output_name(): string;
set_lines(shaders_collection_controller: ShadersCollectionController): void;
get attribute_name(): string;
gl_type(): GlConnectionPointType;
set_gl_type(type: GlConnectionPointType): void;
connected_input_node(): BaseGlNodeType | null;
connected_input_connection_point(): BaseGlConnectionPoint | undefined;
output_connection_point(): BaseGlConnectionPoint | undefined;
get is_importing(): boolean;
get is_exporting(): boolean;
private _set_mat_to_recompile_if_is_exporting;
private _on_create_set_name_if_none;
}
export {};