UNPKG

@polygonjs/polygonjs

Version:

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

13 lines (12 loc) 874 B
import { Vector2, BufferGeometry, DataTexture } from 'three'; export declare enum AttribLookup { ID = "attribLookupId", UV = "attribLookupUv" } export declare function textureFromAttributePointsCount(geometry: BufferGeometry): number; export declare function textureSizeFromPointsCount(geometry: BufferGeometry, target: Vector2): void; export declare function textureFromAttributesMissingAttributes(geometry: BufferGeometry, attribNames: string[]): string[]; export declare function textureFromAttributesTotalAttribSizes(geometry: BufferGeometry, attribNames: string[]): number; export declare function textureFromAttributes(geometry: BufferGeometry, attribNames: string[]): DataTexture | undefined; export declare function textureFromAttribLookupUv(geometry: BufferGeometry): void; export declare function textureFromAttribLookupId(geometry: BufferGeometry): void;