declare global { /** * Utility to render the current viewport into a buffer, where each pixel contains the UV coords as well as which mesh and face was hit */ class RenderTargetSnapshot { preview: Preview; meshes: THREE.Mesh[]; render_target: THREE.WebGLRenderTarget; pixel_buffer: Float32Array; constructor(preview: Preview); takeSnapshot(meshes: THREE.Mesh[]): this; readPixel(coord_x: number, coord_y: number): null | { object: THREE.Mesh; uv: THREE.Vector2; face_index: number; }; } } export {};