@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
23 lines (22 loc) • 1.17 kB
TypeScript
import { BasePersistedConfig, PersistedConfigWithShaders } from '../../../../utils/BasePersistedConfig';
import { ClothSolverSopNode } from '../../../../sop/ClothSolver';
import { TextureAllocationsController, TextureAllocationsControllerData } from '../../utils/TextureAllocationsController';
import { ShaderName } from '../../../../utils/shaders/ShaderName';
export interface PersistedConfigBaseClothData extends PersistedConfigWithShaders {
texture_allocations: TextureAllocationsControllerData;
param_uniform_pairs: [string, string][];
uniforms_owner: object;
}
export declare class ClothPersistedConfig extends BasePersistedConfig {
protected node: ClothSolverSopNode;
private _loaded_data;
constructor(node: ClothSolverSopNode);
toData(): Promise<PersistedConfigBaseClothData | undefined>;
load(data: PersistedConfigBaseClothData): void;
loaded_data(): PersistedConfigBaseClothData | undefined;
shaders_by_name(): Map<ShaderName, string> | undefined;
texture_allocations_controller(): TextureAllocationsController | undefined;
uniforms(): {
[uniform: string]: import("three").IUniform<any>;
} | undefined;
}