UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

73 lines (72 loc) 4.29 kB
/** * Creates a Mesh Standard Material, which can be extended with GL nodes. * * @remarks * This node can create children, which will be GL nodes. The GLSL code generated by the nodes will extend the Material. * */ import { NodeParamsConfig } from '../utils/params/ParamsConfig'; import { DepthController } from './utils/DepthController'; import { TextureMapController } from './utils/TextureMapController'; import { TextureAlphaMapController } from './utils/TextureAlphaMapController'; import { TextureEnvMapController } from './utils/TextureEnvMapController'; import { TypedBuilderMatNode } from './_BaseBuilder'; import { ShaderAssemblerStandard } from '../gl/code/assemblers/materials/Standard'; import { AssemblerName } from '../../poly/registers/assemblers/_BaseRegister'; declare const MeshStandardMatParamsConfig_base: { new (...args: any[]): { useEnvMap: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; envMap: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.OPERATOR_PATH>; envMapIntensity: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>; }; } & { new (...args: any[]): { useAlphaMap: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; alphaMap: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.OPERATOR_PATH>; }; } & { new (...args: any[]): { useMap: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; map: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.OPERATOR_PATH>; }; } & { new (...args: any[]): { skinning: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; }; } & { new (...args: any[]): { depthWrite: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; depthTest: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; }; } & { new (...args: any[]): { doubleSided: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; front: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; }; } & { new (...args: any[]): { transparent: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; opacity: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>; alphaTest: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>; useFog: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; }; } & typeof NodeParamsConfig; declare class MeshStandardMatParamsConfig extends MeshStandardMatParamsConfig_base { metalness: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>; roughness: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>; } export declare class MeshStandardBuilderMatNode extends TypedBuilderMatNode<ShaderAssemblerStandard, MeshStandardMatParamsConfig> { params_config: MeshStandardMatParamsConfig; static type(): string; usedAssembler(): Readonly<AssemblerName.GL_MESH_STANDARD>; protected _create_assembler_controller(): import("../gl/code/Controller").GlAssemblerController<ShaderAssemblerStandard> | undefined; readonly texture_map_controller: TextureMapController; readonly texture_alpha_map_controller: TextureAlphaMapController; readonly texture_env_map_controller: TextureEnvMapController; readonly depth_controller: DepthController; initializeNode(): void; cook(): Promise<void>; static _update_metalness(node: MeshStandardBuilderMatNode): void; static _update_roughness(node: MeshStandardBuilderMatNode): void; } export {};