UNPKG

@polygonjs/polygonjs

Version:

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

42 lines (41 loc) 2.27 kB
/** * Updates the normals of the geometry * * @remarks * Just like the Point and Color SOPs, this can take expressions * */ import { TypedSopNode } from './_Base'; import { CoreGroup } from '../../../core/geometry/Group'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; import { SopType } from '../../poly/registers/nodes/types/Sop'; declare class NormalsSopParamsConfig extends NodeParamsConfig { /** @param toggle on if normals can be updated via expressions */ edit: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param toggle on to update the x component */ updateX: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param expression or value for the x component */ x: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param toggle on to update the y component */ updateY: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param expression or value for the y component */ y: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param toggle on to update the z component */ updateZ: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param expression or value for the z component */ z: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param recompute the normals based on the position */ recompute: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param invert normals */ invert: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; } export declare class NormalsSopNode extends TypedSopNode<NormalsSopParamsConfig> { paramsConfig: NormalsSopParamsConfig; static type(): SopType; initializeNode(): void; cook(inputCoreGroups: CoreGroup[]): Promise<void>; private _evalExpressionsForCoreGroup; private _evalExpressionsForCoreObject; private _invertNormals; } export {};