polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
20 lines (19 loc) • 756 B
TypeScript
import { Vector2 } from 'three/src/math/Vector2';
import { Vector3 } from 'three/src/math/Vector3';
import { BufferAttribute } from 'three/src/core/BufferAttribute';
import { AttribValue } from '../../types/GlobalTypes';
export declare enum Attribute {
POSITION = "position",
NORMAL = "normal",
TANGENT = "tangent"
}
export declare class CoreAttribute {
static remap_name(name: string): string;
static array_to_indexed_arrays(array: string[]): {
indices: number[];
values: string[];
};
static default_value(size: number): 0 | Vector2 | Vector3;
static copy(src: BufferAttribute, dest: BufferAttribute, mark_as_needs_update?: boolean): void;
static attribSizeFromValue(val: AttribValue): number | null;
}