UNPKG

polygonjs-engine

Version:

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

58 lines (57 loc) 3.48 kB
import { Constructor } from '../../../../types/GlobalTypes'; import { BaseController } from './_BaseController'; import { TypedMatNode } from '../_Base'; import { Material } from 'three/src/materials/Material'; import { Color } from 'three/src/math/Color'; import { NodeParamsConfig } from '../../utils/params/ParamsConfig'; export declare function ColorParamConfig<TBase extends Constructor>(Base: TBase): { new (...args: any[]): { /** @param material color */ color: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.COLOR>; /** @param defines if the color attribute on the geometry is used */ useVertexColors: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.BOOLEAN>; /** @param sets the material to transparent */ transparent: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.BOOLEAN>; /** @param sets the material opacity */ opacity: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.FLOAT>; /** @param sets the min alpha below which the material is invisible */ alphaTest: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.FLOAT>; /** @param toggle on if you have a fog in the scene and the material should be affected by it */ useFog: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.BOOLEAN>; }; } & TBase; declare class ColoredMaterial extends Material { color: Color; vertexColors: boolean; transparent: boolean; depthTest: boolean; alphaTest: number; fog: boolean; } declare const ColorParamsConfig_base: { new (...args: any[]): { /** @param material color */ color: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.COLOR>; /** @param defines if the color attribute on the geometry is used */ useVertexColors: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.BOOLEAN>; /** @param sets the material to transparent */ transparent: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.BOOLEAN>; /** @param sets the material opacity */ opacity: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.FLOAT>; /** @param sets the min alpha below which the material is invisible */ alphaTest: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.FLOAT>; /** @param toggle on if you have a fog in the scene and the material should be affected by it */ useFog: import("../../utils/params/ParamsConfig").ParamTemplate<import("../../../poly/ParamType").ParamType.BOOLEAN>; }; } & typeof NodeParamsConfig; declare class ColorParamsConfig extends ColorParamsConfig_base { } declare class ColoredMatNode extends TypedMatNode<ColoredMaterial, ColorParamsConfig> { create_material(): ColoredMaterial; } export declare class ColorsController extends BaseController { protected node: ColoredMatNode; constructor(node: ColoredMatNode); static update(node: ColoredMatNode): void; } export {};