New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

threeify

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

threeify - npm Package Compare versions

Comparing version 1.73.4 to 1.76.0

dist/lib/renderers/webgl/framebuffers/Framebuffer.Functions.d.ts

3

dist/lib/engines/layerCompositor/LayerCompositor.js

@@ -36,3 +36,4 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {

import { PixelFormat } from "../../renderers/webgl/textures/PixelFormat";
import { makeTexImage2DFromTexture, TexImage2D } from "../../renderers/webgl/textures/TexImage2D";
import { TexImage2D } from "../../renderers/webgl/textures/TexImage2D";
import { makeTexImage2DFromTexture } from "../../renderers/webgl/textures/TexImage2D.Functions";
import { TexParameters } from "../../renderers/webgl/textures/TexParameters";

@@ -39,0 +40,0 @@ import { TextureFilter } from "../../renderers/webgl/textures/TextureFilter";

@@ -1,4 +0,4 @@

import { transformNormal3, transformPoint3 } from "..";
import { makeVector3View } from "../math/arrays/PrimitiveView";
import { Vector3 } from "../math/Vector3";
import { transformNormal3, transformPoint3 } from "../math/Vector3Matrix4.Functions";
import { Attribute, makeFloat32Attribute } from "./Attribute";

@@ -5,0 +5,0 @@ import { AttributeData } from "./AttributeData";

import { Vector2 } from "../../../math/Vector2";
import { RenderingContext } from "../RenderingContext";
import { DataType } from "../textures/DataType";
import { TexImage2D } from "../textures/TexImage2D";
import { TextureTarget } from "../textures/TextureTarget";
import { Attachment } from "./Attachment";

@@ -17,3 +15,3 @@ import { VirtualFramebuffer } from "./VirtualFramebuffer";

constructor(context: RenderingContext);
attach(attachmentPoint: Attachment, texImage2D: TexImage2D, target?: TextureTarget, level?: number): void;
attach(attachmentPoint: Attachment, texImage2D: TexImage2D, target?: import("..").TextureTarget, level?: number): void;
getAttachment(attachmentPoint: Attachment): TexImage2D | undefined;

@@ -23,5 +21,2 @@ get size(): Vector2;

}
export declare function readPixelsFromFramebuffer(framebuffer: Framebuffer, pixelBuffer?: ArrayBufferView | undefined): ArrayBufferView;
export declare function makeColorAttachment(context: RenderingContext, size: Vector2, dataType?: DataType | undefined): TexImage2D;
export declare function makeDepthAttachment(context: RenderingContext, size: Vector2): TexImage2D;
//# sourceMappingURL=Framebuffer.d.ts.map

@@ -10,9 +10,2 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {

import { GL } from "../GL";
import { DataType, sizeOfDataType } from "../textures/DataType";
import { numPixelFormatComponents, PixelFormat } from "../textures/PixelFormat";
import { TexImage2D } from "../textures/TexImage2D";
import { TexParameters } from "../textures/TexParameters";
import { TextureFilter } from "../textures/TextureFilter";
import { TextureTarget } from "../textures/TextureTarget";
import { Attachment } from "./Attachment";
import { VirtualFramebuffer } from "./VirtualFramebuffer";

@@ -58,42 +51,2 @@ export class Framebuffer extends VirtualFramebuffer {

_size = new WeakMap();
export function readPixelsFromFramebuffer(framebuffer, pixelBuffer = undefined) {
const context = framebuffer.context;
context.framebuffer = framebuffer;
const gl = context.gl;
const status = gl.checkFramebufferStatus(GL.FRAMEBUFFER);
if (status !== GL.FRAMEBUFFER_COMPLETE) {
throw new Error(`can not read non-complete Framebuffer: ${status}`);
}
const texImage2D = framebuffer.getAttachment(Attachment.Color0);
if (texImage2D === undefined) {
throw new Error("no attachment on Color0");
}
const pixelByteLength = sizeOfDataType(texImage2D.dataType) *
numPixelFormatComponents(texImage2D.pixelFormat) *
texImage2D.size.width *
texImage2D.size.height;
if (pixelBuffer === undefined) {
pixelBuffer = new Uint8Array(pixelByteLength);
}
if (pixelBuffer.byteLength < pixelByteLength) {
throw new Error(`pixelBuffer too small: ${pixelBuffer.byteLength} < ${pixelByteLength}`);
}
gl.readPixels(0, 0, texImage2D.size.width, texImage2D.size.height, texImage2D.pixelFormat, texImage2D.dataType, pixelBuffer);
return pixelBuffer;
}
export function makeColorAttachment(context, size, dataType = undefined) {
const texParams = new TexParameters();
texParams.generateMipmaps = false;
texParams.magFilter = TextureFilter.Linear;
texParams.minFilter = TextureFilter.Linear;
return new TexImage2D(context, [size], PixelFormat.RGBA, dataType !== null && dataType !== void 0 ? dataType : DataType.UnsignedByte, PixelFormat.RGBA, TextureTarget.Texture2D, texParams);
}
export function makeDepthAttachment(context, size) {
const texParams = new TexParameters();
texParams.generateMipmaps = false;
texParams.magFilter = TextureFilter.Nearest;
texParams.minFilter = TextureFilter.Nearest;
const dataType = DataType.UnsignedShort;
return new TexImage2D(context, [size], PixelFormat.DepthComponent, dataType, PixelFormat.DepthComponent, TextureTarget.Texture2D, texParams);
}
//# sourceMappingURL=Framebuffer.js.map

@@ -5,3 +5,4 @@ export * from "./Attachment";

export * from "./Framebuffer";
export * from "./Framebuffer.Functions";
export * from "./VirtualFramebuffer";
//# sourceMappingURL=index.d.ts.map

@@ -5,3 +5,4 @@ export * from "./Attachment";

export * from "./Framebuffer";
export * from "./Framebuffer.Functions";
export * from "./VirtualFramebuffer";
//# sourceMappingURL=index.js.map
export * from "./DataType";
export * from "./PixelFormat";
export * from "./TexImage2D";
export * from "./TexImage2D.Functions";
export * from "./TexParameters";

@@ -5,0 +6,0 @@ export * from "./TextureFilter";

export * from "./DataType";
export * from "./PixelFormat";
export * from "./TexImage2D";
export * from "./TexImage2D.Functions";
export * from "./TexParameters";

@@ -5,0 +6,0 @@ export * from "./TextureFilter";

import { IDisposable } from "../../../core/types";
import { Vector2 } from "../../../math/Vector2";
import { CubeMapTexture } from "../../../textures/CubeTexture";
import { Texture } from "../../../textures/Texture";
import { TextureSource } from "../../../textures/VirtualTexture";
import { Pool } from "../../Pool";
import { RenderingContext } from "../RenderingContext";

@@ -31,8 +28,2 @@ import { DataType } from "./DataType";

}
export declare function makeTexImage2DFromTexture(context: RenderingContext, texture: Texture, internalFormat?: PixelFormat): TexImage2D;
export declare function makeTexImage2DFromCubeTexture(context: RenderingContext, texture: CubeMapTexture, internalFormat?: PixelFormat): TexImage2D;
export declare function makeTexImage2DFromEquirectangularTexture(context: RenderingContext, latLongTexture: Texture, faceSize?: Vector2, generateMipmaps?: boolean): TexImage2D;
export declare class TexImage2DPool extends Pool<Texture, TexImage2D> {
constructor(context: RenderingContext);
}
//# sourceMappingURL=TexImage2D.d.ts.map

@@ -1,17 +0,5 @@

import { passGeometry } from "../../../geometry/primitives/passGeometry";
import { ShaderMaterial } from "../../../materials/ShaderMaterial";
import { isPow2 } from "../../../math/Functions";
import { Vector2 } from "../../../math/Vector2";
import { ArrayBufferImage } from "../../../textures/ArrayBufferImage";
import { cubeFaceTargets, CubeMapTexture } from "../../../textures/CubeTexture";
import { Pool } from "../../Pool";
import { makeBufferGeometryFromGeometry } from "../buffers/BufferGeometry";
import { Attachment } from "../framebuffers/Attachment";
import { Framebuffer } from "../framebuffers/Framebuffer";
import { renderBufferGeometry } from "../framebuffers/VirtualFramebuffer";
import { GL } from "../GL";
import { makeProgramFromShaderMaterial } from "../programs/Program";
import { TextureFilter } from "../textures/TextureFilter";
import cubeFaceFragmentSource from "./cubeFaces/fragment.glsl";
import cubeFaceVertexSource from "./cubeFaces/vertex.glsl";
import { DataType } from "./DataType";

@@ -21,3 +9,2 @@ import { PixelFormat } from "./PixelFormat";

import { TextureTarget } from "./TextureTarget";
import { TextureWrap } from "./TextureWrap";
export class TexImage2D {

@@ -107,3 +94,3 @@ constructor(context, images, internalFormat = PixelFormat.RGBA, dataType = DataType.UnsignedByte, pixelFormat = PixelFormat.RGBA, target = TextureTarget.Texture2D, texParameters = new TexParameters()) {

if (level === 0) {
this.size.copy(image);
this.size.set(image.width, image.height);
}

@@ -123,65 +110,2 @@ }

}
export function makeTexImage2DFromTexture(context, texture, internalFormat = PixelFormat.RGBA) {
const params = new TexParameters();
params.anisotropyLevels = texture.anisotropicLevels;
params.generateMipmaps = texture.generateMipmaps;
params.magFilter = texture.magFilter;
params.minFilter = texture.minFilter;
params.wrapS = texture.wrapS;
params.wrapT = texture.wrapT;
return new TexImage2D(context, [texture.image], texture.pixelFormat, texture.dataType, internalFormat, TextureTarget.Texture2D, params);
}
export function makeTexImage2DFromCubeTexture(context, texture, internalFormat = PixelFormat.RGBA) {
const params = new TexParameters();
params.anisotropyLevels = texture.anisotropicLevels;
params.generateMipmaps = texture.generateMipmaps;
params.magFilter = texture.magFilter;
params.minFilter = texture.minFilter;
params.wrapS = TextureWrap.ClampToEdge;
params.wrapT = TextureWrap.ClampToEdge;
return new TexImage2D(context, texture.images, texture.pixelFormat, texture.dataType, internalFormat, TextureTarget.TextureCubeMap, params);
}
export function makeTexImage2DFromEquirectangularTexture(context, latLongTexture, faceSize = new Vector2(512, 512), generateMipmaps = true) {
latLongTexture.wrapS = TextureWrap.Repeat;
latLongTexture.wrapT = TextureWrap.ClampToEdge;
latLongTexture.minFilter = TextureFilter.Linear;
const cubeTexture = new CubeMapTexture([faceSize, faceSize, faceSize, faceSize, faceSize, faceSize]);
cubeTexture.generateMipmaps = generateMipmaps;
const latLongMap = makeTexImage2DFromTexture(context, latLongTexture);
const cubeFaceGeometry = passGeometry();
const cubeFaceMaterial = new ShaderMaterial(cubeFaceVertexSource, cubeFaceFragmentSource);
const cubeFaceProgram = makeProgramFromShaderMaterial(context, cubeFaceMaterial);
const cubeFaceBufferGeometry = makeBufferGeometryFromGeometry(context, cubeFaceGeometry);
const cubeMap = makeTexImage2DFromCubeTexture(context, cubeTexture);
const cubeFaceFramebuffer = new Framebuffer(context);
const cubeFaceUniforms = {
map: latLongMap,
faceIndex: 0,
};
cubeFaceTargets.forEach((target, index) => {
cubeFaceFramebuffer.attach(Attachment.Color0, cubeMap, target, 0);
cubeFaceUniforms.faceIndex = index;
renderBufferGeometry(cubeFaceFramebuffer, cubeFaceProgram, cubeFaceUniforms, cubeFaceBufferGeometry);
});
if (generateMipmaps) {
cubeMap.generateMipmaps();
}
cubeFaceFramebuffer.flush();
cubeFaceFramebuffer.finish();
cubeFaceFramebuffer.dispose();
cubeFaceProgram.dispose();
cubeFaceGeometry.dispose();
latLongMap.dispose();
return cubeMap;
}
export class TexImage2DPool extends Pool {
constructor(context) {
super(context, (context, texture, texImage2D) => {
if (texImage2D === undefined) {
texImage2D = makeTexImage2DFromTexture(context, texture);
}
return texImage2D;
});
}
}
//# sourceMappingURL=TexImage2D.js.map
{
"name": "threeify",
"version": "1.73.4",
"version": "1.76.0",
"description": "Typescript 3D Library loosely based on three.js",

@@ -5,0 +5,0 @@ "keywords": [

@@ -23,3 +23,3 @@ import { passGeometry } from "../../../lib/geometry/primitives/passGeometry";

makeTexImage2DFromEquirectangularTexture,
} from "../../../lib/renderers/webgl/textures/TexImage2D";
} from "../../../lib/renderers/webgl/textures/TexImage2D.Functions";
import { TextureFilter } from "../../../lib/renderers/webgl/textures/TextureFilter";

@@ -26,0 +26,0 @@ import { TextureWrap } from "../../../lib/renderers/webgl/textures/TextureWrap";

import {
fetchImage,
makeBufferGeometryFromGeometry,

@@ -11,3 +12,2 @@ makeProgramFromShaderMaterial,

} from "../../../lib/index";
import { fetchImage } from "../../../lib/textures/loaders";
import fragmentSource from "./fragment.glsl";

@@ -14,0 +14,0 @@ import vertexSource from "./vertex.glsl";

@@ -9,2 +9,3 @@ import {

Euler,
fetchImage,
Framebuffer,

@@ -26,3 +27,2 @@ makeBufferGeometryFromGeometry,

} from "../../../lib/index";
import { fetchImage } from "../../../lib/textures/loaders";
import fragmentSource from "./fragment.glsl";

@@ -29,0 +29,0 @@ import vertexSource from "./vertex.glsl";

@@ -9,2 +9,3 @@ import {

Euler,
fetchImage,
Framebuffer,

@@ -27,3 +28,2 @@ makeBufferGeometryFromGeometry,

} from "../../../lib/index";
import { fetchImage } from "../../../lib/textures/loaders";
import fragmentSource from "./fragment.glsl";

@@ -30,0 +30,0 @@ import vertexSource from "./vertex.glsl";

import {
Blending,
blendModeToBlendState,
fetchImageElement,
makeBufferGeometryFromGeometry,

@@ -14,3 +15,2 @@ makeProgramFromShaderMaterial,

} from "../../../lib/index";
import { fetchImageElement } from "../../../lib/textures/loaders";
import fragmentSource from "./fragment.glsl";

@@ -17,0 +17,0 @@ import vertexSource from "./vertex.glsl";

import {
BufferBit,
ClearState,
fetchImage,
makeBufferGeometryFromGeometry,

@@ -21,3 +22,2 @@ makeMatrix4OrthographicSimple,

} from "../../../lib/index";
import { fetchImage } from "../../../lib/textures/loaders";
import fragmentSource from "./fragment.glsl";

@@ -24,0 +24,0 @@ import vertexSource from "./vertex.glsl";

@@ -28,3 +28,4 @@ import { transformGeometry } from "../../geometry/Geometry.Functions";

import { PixelFormat } from "../../renderers/webgl/textures/PixelFormat";
import { makeTexImage2DFromTexture, TexImage2D } from "../../renderers/webgl/textures/TexImage2D";
import { TexImage2D } from "../../renderers/webgl/textures/TexImage2D";
import { makeTexImage2DFromTexture } from "../../renderers/webgl/textures/TexImage2D.Functions";
import { TexParameters } from "../../renderers/webgl/textures/TexParameters";

@@ -31,0 +32,0 @@ import { TextureFilter } from "../../renderers/webgl/textures/TextureFilter";

@@ -1,5 +0,5 @@

import { transformNormal3, transformPoint3 } from "..";
import { makeVector3View } from "../math/arrays/PrimitiveView";
import { Matrix4 } from "../math/Matrix4";
import { Vector3 } from "../math/Vector3";
import { transformNormal3, transformPoint3 } from "../math/Vector3Matrix4.Functions";
import { Attribute, makeFloat32Attribute } from "./Attribute";

@@ -6,0 +6,0 @@ import { AttributeData } from "./AttributeData";

@@ -11,8 +11,3 @@ //

import { RenderingContext } from "../RenderingContext";
import { DataType, sizeOfDataType } from "../textures/DataType";
import { numPixelFormatComponents, PixelFormat } from "../textures/PixelFormat";
import { TexImage2D } from "../textures/TexImage2D";
import { TexParameters } from "../textures/TexParameters";
import { TextureFilter } from "../textures/TextureFilter";
import { TextureTarget } from "../textures/TextureTarget";
import { Attachment } from "./Attachment";

@@ -73,85 +68,1 @@ import { VirtualFramebuffer } from "./VirtualFramebuffer";

}
export function readPixelsFromFramebuffer(
framebuffer: Framebuffer,
pixelBuffer: ArrayBufferView | undefined = undefined,
): ArrayBufferView {
const context = framebuffer.context;
context.framebuffer = framebuffer;
const gl = context.gl;
const status = gl.checkFramebufferStatus(GL.FRAMEBUFFER);
if (status !== GL.FRAMEBUFFER_COMPLETE) {
throw new Error(`can not read non-complete Framebuffer: ${status}`);
}
const texImage2D = framebuffer.getAttachment(Attachment.Color0);
if (texImage2D === undefined) {
throw new Error("no attachment on Color0");
}
const pixelByteLength =
sizeOfDataType(texImage2D.dataType) *
numPixelFormatComponents(texImage2D.pixelFormat) *
texImage2D.size.width *
texImage2D.size.height;
if (pixelBuffer === undefined) {
pixelBuffer = new Uint8Array(pixelByteLength);
}
if (pixelBuffer.byteLength < pixelByteLength) {
throw new Error(`pixelBuffer too small: ${pixelBuffer.byteLength} < ${pixelByteLength}`);
}
gl.readPixels(
0,
0,
texImage2D.size.width,
texImage2D.size.height,
texImage2D.pixelFormat,
texImage2D.dataType,
pixelBuffer,
);
return pixelBuffer;
}
export function makeColorAttachment(
context: RenderingContext,
size: Vector2,
dataType: DataType | undefined = undefined,
): TexImage2D {
const texParams = new TexParameters();
texParams.generateMipmaps = false;
texParams.magFilter = TextureFilter.Linear;
texParams.minFilter = TextureFilter.Linear;
return new TexImage2D(
context,
[size],
PixelFormat.RGBA,
dataType ?? DataType.UnsignedByte,
PixelFormat.RGBA,
TextureTarget.Texture2D,
texParams,
);
}
export function makeDepthAttachment(context: RenderingContext, size: Vector2): TexImage2D {
const texParams = new TexParameters();
texParams.generateMipmaps = false;
texParams.magFilter = TextureFilter.Nearest;
texParams.minFilter = TextureFilter.Nearest;
// TODO: figure out which are supported and choose one of those.
// context.glx.WEBGL_depth_texture.UNSIGNED_INT_24_8_WEBGL as DataType,
const dataType = DataType.UnsignedShort;
return new TexImage2D(
context,
[size],
PixelFormat.DepthComponent,
dataType,
PixelFormat.DepthComponent,
TextureTarget.Texture2D,
texParams,
);
}

@@ -5,2 +5,3 @@ export * from "./Attachment";

export * from "./Framebuffer";
export * from "./Framebuffer.Functions";
export * from "./VirtualFramebuffer";
export * from "./DataType";
export * from "./PixelFormat";
export * from "./TexImage2D";
export * from "./TexImage2D.Functions";
export * from "./TexParameters";

@@ -5,0 +6,0 @@ export * from "./TextureFilter";

@@ -10,21 +10,8 @@ //

import { IDisposable } from "../../../core/types";
import { passGeometry } from "../../../geometry/primitives/passGeometry";
import { ShaderMaterial } from "../../../materials/ShaderMaterial";
import { isPow2 } from "../../../math/Functions";
import { Vector2 } from "../../../math/Vector2";
import { ArrayBufferImage } from "../../../textures/ArrayBufferImage";
import { cubeFaceTargets, CubeMapTexture } from "../../../textures/CubeTexture";
import { Texture } from "../../../textures/Texture";
import { TextureSource } from "../../../textures/VirtualTexture";
import { Pool } from "../../Pool";
import { makeBufferGeometryFromGeometry } from "../buffers/BufferGeometry";
import { Attachment } from "../framebuffers/Attachment";
import { Framebuffer } from "../framebuffers/Framebuffer";
import { renderBufferGeometry } from "../framebuffers/VirtualFramebuffer";
import { GL } from "../GL";
import { makeProgramFromShaderMaterial } from "../programs/Program";
import { RenderingContext } from "../RenderingContext";
import { TextureFilter } from "../textures/TextureFilter";
import cubeFaceFragmentSource from "./cubeFaces/fragment.glsl";
import cubeFaceVertexSource from "./cubeFaces/vertex.glsl";
import { DataType } from "./DataType";

@@ -34,3 +21,2 @@ import { PixelFormat } from "./PixelFormat";

import { TextureTarget } from "./TextureTarget";
import { TextureWrap } from "./TextureWrap";

@@ -152,3 +138,3 @@ export class TexImage2D implements IDisposable {

if (level === 0) {
this.size.copy(image);
this.size.set(image.width, image.height);
}

@@ -177,98 +163,3 @@ } else if (image instanceof ArrayBufferImage) {

export function makeTexImage2DFromTexture(
context: RenderingContext,
texture: Texture,
internalFormat: PixelFormat = PixelFormat.RGBA,
): TexImage2D {
const params = new TexParameters();
params.anisotropyLevels = texture.anisotropicLevels;
params.generateMipmaps = texture.generateMipmaps;
params.magFilter = texture.magFilter;
params.minFilter = texture.minFilter;
params.wrapS = texture.wrapS;
params.wrapT = texture.wrapT;
return new TexImage2D(
context,
[texture.image],
texture.pixelFormat,
texture.dataType,
internalFormat,
TextureTarget.Texture2D,
params,
);
}
export function makeTexImage2DFromCubeTexture(
context: RenderingContext,
texture: CubeMapTexture,
internalFormat: PixelFormat = PixelFormat.RGBA,
): TexImage2D {
const params = new TexParameters();
params.anisotropyLevels = texture.anisotropicLevels;
params.generateMipmaps = texture.generateMipmaps;
params.magFilter = texture.magFilter;
params.minFilter = texture.minFilter;
params.wrapS = TextureWrap.ClampToEdge;
params.wrapT = TextureWrap.ClampToEdge;
return new TexImage2D(
context,
texture.images,
texture.pixelFormat,
texture.dataType,
internalFormat,
TextureTarget.TextureCubeMap,
params,
);
}
export function makeTexImage2DFromEquirectangularTexture(
context: RenderingContext,
latLongTexture: Texture,
faceSize = new Vector2(512, 512),
generateMipmaps = true,
): TexImage2D {
// required for proper reading.
latLongTexture.wrapS = TextureWrap.Repeat;
latLongTexture.wrapT = TextureWrap.ClampToEdge;
latLongTexture.minFilter = TextureFilter.Linear;
const cubeTexture = new CubeMapTexture([faceSize, faceSize, faceSize, faceSize, faceSize, faceSize]);
cubeTexture.generateMipmaps = generateMipmaps;
const latLongMap = makeTexImage2DFromTexture(context, latLongTexture);
const cubeFaceGeometry = passGeometry();
const cubeFaceMaterial = new ShaderMaterial(cubeFaceVertexSource, cubeFaceFragmentSource);
const cubeFaceProgram = makeProgramFromShaderMaterial(context, cubeFaceMaterial);
const cubeFaceBufferGeometry = makeBufferGeometryFromGeometry(context, cubeFaceGeometry);
const cubeMap = makeTexImage2DFromCubeTexture(context, cubeTexture);
const cubeFaceFramebuffer = new Framebuffer(context);
const cubeFaceUniforms = {
map: latLongMap,
faceIndex: 0,
};
cubeFaceTargets.forEach((target, index) => {
cubeFaceFramebuffer.attach(Attachment.Color0, cubeMap, target, 0);
cubeFaceUniforms.faceIndex = index;
renderBufferGeometry(cubeFaceFramebuffer, cubeFaceProgram, cubeFaceUniforms, cubeFaceBufferGeometry);
});
if (generateMipmaps) {
cubeMap.generateMipmaps();
}
cubeFaceFramebuffer.flush();
cubeFaceFramebuffer.finish();
cubeFaceFramebuffer.dispose();
// cubeFaceBufferGeometry.dispose(); - causes crashes. Huh?
cubeFaceProgram.dispose();
cubeFaceGeometry.dispose();
latLongMap.dispose();
return cubeMap;
}
/*
export class TexImage2DPool extends Pool<Texture, TexImage2D> {

@@ -286,1 +177,2 @@ constructor(context: RenderingContext) {

}
*/

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc