UNPKG

@polygonjs/polygonjs

Version:

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

44 lines (43 loc) 3.17 kB
/** * Creates a directional light. * * @remarks * This is very similar to the [object level DirectionalLight](https://polygonjs.com/docs/nodes/obj/DirectionalLight), but can be more useful if you want to instanciate it or process it using other SOP nodes. * */ import { TypedSopNode } from './_Base'; import { CoreGroup } from '../../../core/geometry/Group'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; import { LightType } from '../../poly/registers/nodes/types/Light'; declare const DirectionalLightSopParamsConfig_base: { new (...args: any[]): { light: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FOLDER>; color: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.COLOR>; intensity: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; distance: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; showHelper: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; name: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.STRING>; shadow: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FOLDER>; castShadow: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; shadowAutoUpdate: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; shadowUpdateOnNextRender: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; shadowRes: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.VECTOR2>; shadowSize: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.VECTOR2>; shadowBias: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; shadowRadius: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; raymarching: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FOLDER>; raymarchingPenumbra: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; raymarchingShadowBiasAngle: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; raymarchingShadowBiasDistance: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; }; } & typeof NodeParamsConfig; declare class DirectionalLightSopParamsConfig extends DirectionalLightSopParamsConfig_base { } export declare class DirectionalLightSopNode extends TypedSopNode<DirectionalLightSopParamsConfig> { paramsConfig: DirectionalLightSopParamsConfig; static type(): LightType; initializeNode(): void; private _operation; cook(input_contents: CoreGroup[]): void; } export {};