UNPKG

threepipe

Version:

A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.

13 lines 654 B
import { Color, DataTexture, Vector4 } from 'three'; export declare function dataTextureFromColor(color: Color): DataTexture; export declare function dataTextureFromVec4(color: Vector4): DataTexture; /** * Convert half float buffer to rgbe * adapted from https://github.com/enkimute/hdrpng.js/blob/3a62b3ae2940189777df9f669df5ece3e78d9c16/hdrpng.js#L235 * channels = 4 for RGBA data or 3 for RGB data. buffer from THREE.DataTexture * @param buffer * @param channels * @param res */ export declare function halfFloatToRgbe(buffer: Uint16Array, channels?: number, res?: Uint8ClampedArray): Uint8ClampedArray; //# sourceMappingURL=conversion.d.ts.map