UNPKG

@polygonjs/polygonjs

Version:

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

42 lines (41 loc) 2.69 kB
/** * Allows to edit properties of materials. * * @remarks * * Note that if the input node use a material created via a [MAT node](/docs/nodes/mat), and not when loading the geometry via a [File SOP](/docs/nodes/sop/file), it's important to keep in mind that materials are shared. * Therefore any other object also using those material will be affected. * */ 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 MaterialPropertiesSopParamsConfig extends NodeParamsConfig { /** @param group to assign the material to */ group: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.STRING>; /** @param toggle on to allow updating the side properties of the materials */ tside: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param defines if the material is double sided or not */ doubleSided: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param if the material is not double sided, it can be front sided, or back sided */ front: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param override the default shadowSide behavior */ overrideShadowSide: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param defines which side(s) are used when rendering shadows */ shadowDoubleSided: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param if the material is not double sided, it can be front sided, or back sided, when computing shadows */ shadowFront: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param toggle on to allow updating the wireframe properties of the materials */ twireframe: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param defines if the material is double sided or not */ wireframe: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; } export declare class MaterialPropertiesSopNode extends TypedSopNode<MaterialPropertiesSopParamsConfig> { paramsConfig: MaterialPropertiesSopParamsConfig; static type(): SopType; initializeNode(): void; private _operation; cook(inputCoreGroups: CoreGroup[]): void; } export {};