UNPKG

@polygonjs/polygonjs

Version:

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

27 lines (26 loc) 1.42 kB
/** * Function of SDF torus * * @remarks * * based on [https://iquilezles.org/articles/distfunctions/](https://iquilezles.org/articles/distfunctions/) */ import { BaseSDFGlNode } from './_BaseSDF'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; import { ShadersCollectionController } from './code/utils/ShadersCollectionController'; import { GlType } from '../../poly/registers/nodes/types/Gl'; declare class SDFTorusGlParamsConfig extends NodeParamsConfig { position: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.VECTOR3>; center: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.VECTOR3>; radius1: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; radius2: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; capped: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; angle: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; } export declare class SDFTorusGlNode extends BaseSDFGlNode<SDFTorusGlParamsConfig> { paramsConfig: SDFTorusGlParamsConfig; static type(): GlType; initializeNode(): void; setLines(shadersCollectionController: ShadersCollectionController): void; } export {};