UNPKG

@polygonjs/polygonjs

Version:

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

8 lines (7 loc) 851 B
import { DataTexture, BufferGeometry, Vector2 } from 'three'; import { TextureAllocationsController } from '../../../engine/nodes/gl/code/utils/TextureAllocationsController'; export declare function positionTexture(geometry: BufferGeometry, resolution: Vector2): DataTexture; export declare function adjacencyTexture(geometry: BufferGeometry, resolution: Vector2, adjacency: number[][], k: number): DataTexture; export declare function distancesTexture(geometry: BufferGeometry, resolution: Vector2, adjacency: number[][], k: number): DataTexture; export declare function viscositySpringTexture(geometry: BufferGeometry, resolution: Vector2): DataTexture | undefined; export declare function createTexturesFromAllocation(geometry: BufferGeometry, resolution: Vector2, allocationsController: TextureAllocationsController): Record<string, DataTexture>;