@woosh/meep-engine 2.108.3 → 2.108.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5462,7 +5462,7 @@ const UnsignedShort5551Type = 1018;
5462
5462
  const UnsignedShort565Type = 1019;
5463
5463
  const UnsignedInt248Type = 1020;
5464
5464
  const AlphaFormat = 1021;
5465
- const RGBFormat = 1022;
5465
+ const RGBFormat$1 = 1022;
5466
5466
  const RGBAFormat = 1023;
5467
5467
  const LuminanceFormat = 1024;
5468
5468
  const LuminanceAlphaFormat = 1025;
@@ -23394,7 +23394,7 @@ function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) {
23394
23394
  ( parameters.toneMapping !== NoToneMapping ) ? getToneMappingFunction( 'toneMapping', parameters.toneMapping ) : '',
23395
23395
 
23396
23396
  parameters.dithering ? '#define DITHERING' : '',
23397
- parameters.format === RGBFormat ? '#define OPAQUE' : '',
23397
+ parameters.format === RGBFormat$1 ? '#define OPAQUE' : '',
23398
23398
 
23399
23399
  ShaderChunk[ 'encodings_pars_fragment' ], // this code is required here because it is used by the various encoding/decoding function defined below
23400
23400
  parameters.map ? getTexelDecodingFunction( 'mapTexelToLinear', parameters.mapEncoding ) : '',
@@ -27492,7 +27492,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
27492
27492
 
27493
27493
  mipmap = mipmaps[ i ];
27494
27494
 
27495
- if ( texture.format !== RGBAFormat && texture.format !== RGBFormat ) {
27495
+ if ( texture.format !== RGBAFormat && texture.format !== RGBFormat$1 ) {
27496
27496
 
27497
27497
  if ( glFormat !== null ) {
27498
27498
 
@@ -27703,7 +27703,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
27703
27703
 
27704
27704
  const mipmap = mipmaps[ j ];
27705
27705
 
27706
- if ( texture.format !== RGBAFormat && texture.format !== RGBFormat ) {
27706
+ if ( texture.format !== RGBAFormat && texture.format !== RGBFormat$1 ) {
27707
27707
 
27708
27708
  if ( glFormat !== null ) {
27709
27709
 
@@ -28120,7 +28120,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
28120
28120
 
28121
28121
  // Handles WebGL2 RGBFormat fallback - #18858
28122
28122
 
28123
- if ( isWebGL2 && texture.format === RGBFormat && ( texture.type === FloatType || texture.type === HalfFloatType ) ) {
28123
+ if ( isWebGL2 && texture.format === RGBFormat$1 && ( texture.type === FloatType || texture.type === HalfFloatType ) ) {
28124
28124
 
28125
28125
  texture.format = RGBAFormat;
28126
28126
 
@@ -28465,7 +28465,7 @@ function WebGLUtils( gl, extensions, capabilities ) {
28465
28465
  }
28466
28466
 
28467
28467
  if ( p === AlphaFormat ) return 6406;
28468
- if ( p === RGBFormat ) return 6407;
28468
+ if ( p === RGBFormat$1 ) return 6407;
28469
28469
  if ( p === RGBAFormat ) return 6408;
28470
28470
  if ( p === LuminanceFormat ) return 6409;
28471
28471
  if ( p === LuminanceAlphaFormat ) return 6410;
@@ -29260,7 +29260,7 @@ class WebXRManager extends EventDispatcher {
29260
29260
  glProjLayer.textureWidth,
29261
29261
  glProjLayer.textureHeight,
29262
29262
  {
29263
- format: attributes.alpha ? RGBAFormat : RGBFormat,
29263
+ format: attributes.alpha ? RGBAFormat : RGBFormat$1,
29264
29264
  type: UnsignedByteType,
29265
29265
  depthTexture: new DepthTexture( glProjLayer.textureWidth, glProjLayer.textureHeight, depthType, undefined, undefined, undefined, undefined, undefined, undefined, depthFormat ),
29266
29266
  stencilBuffer: attributes.stencil,
@@ -34185,7 +34185,7 @@ class VideoTexture extends Texture {
34185
34185
 
34186
34186
  super( video, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
34187
34187
 
34188
- this.format = format !== undefined ? format : RGBFormat;
34188
+ this.format = format !== undefined ? format : RGBFormat$1;
34189
34189
 
34190
34190
  this.minFilter = minFilter !== undefined ? minFilter : LinearFilter;
34191
34191
  this.magFilter = magFilter !== undefined ? magFilter : LinearFilter;
@@ -58962,7 +58962,7 @@ function writeSample2DDataToDataTexture(sampler, texture) {
58962
58962
  throw new Error('itemSize is 2 and texture.format is not RGFormat');
58963
58963
  }
58964
58964
  } else if (sampler.itemSize === 3) {
58965
- if (texture.format !== RGBFormat) {
58965
+ if (texture.format !== RGBFormat$1) {
58966
58966
  throw new Error('itemSize is 2 and texture.format is not RGBFormat');
58967
58967
  }
58968
58968
  } else if (sampler.itemSize === 4) {
@@ -59186,7 +59186,7 @@ function channelCountToThreeTextureFormat(count) {
59186
59186
  case 2:
59187
59187
  return RGFormat;
59188
59188
  case 3:
59189
- return RGBFormat;
59189
+ return RGBFormat$1;
59190
59190
  case 4:
59191
59191
  return RGBAFormat;
59192
59192
  default:
@@ -62741,7 +62741,7 @@ class TerrainLayers {
62741
62741
  * @type {DataTexture2DArray}
62742
62742
  */
62743
62743
  this.texture = new DataTexture2DArray(new Uint8Array(3), 1, 1, 1);
62744
- this.texture.format = RGBFormat;
62744
+ this.texture.format = RGBFormat$1;
62745
62745
  this.texture.type = UnsignedByteType;
62746
62746
 
62747
62747
  this.texture.wrapS = RepeatWrapping;
@@ -67532,6 +67532,12 @@ const CopyShader = {
67532
67532
 
67533
67533
  };
67534
67534
 
67535
+ /**
67536
+ * WebGL constant, declared explicitly to avoid issues with later THREE.js versions where it is absent
67537
+ * @type {number}
67538
+ */
67539
+ const RGBFormat = 1022;
67540
+
67535
67541
  /**
67536
67542
  *
67537
67543
  * @param {number} format
@@ -88348,7 +88354,7 @@ class ColorAndDepthFrameBuffer extends FrameBuffer {
88348
88354
 
88349
88355
  const target = new WebGLMultisampleRenderTarget(size.x, size.y,{ignoreDepth: false});
88350
88356
 
88351
- target.texture.format = RGBFormat; // note, three.js required RGBA render texture, even though RGB would do here
88357
+ target.texture.format = RGBFormat$1; // note, three.js required RGBA render texture, even though RGB would do here
88352
88358
  target.texture.minFilter = NearestFilter;
88353
88359
  target.texture.magFilter = NearestFilter;
88354
88360
  target.texture.generateMipmaps = false;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.108.3",
8
+ "version": "2.108.4",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -1 +1 @@
1
- {"version":3,"file":"formatToChannelCount.d.ts","sourceRoot":"","sources":["../../../../../src/engine/graphics/texture/formatToChannelCount.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,6CAHW,MAAM,GACJ,MAAM,CAgBlB"}
1
+ {"version":3,"file":"formatToChannelCount.d.ts","sourceRoot":"","sources":["../../../../../src/engine/graphics/texture/formatToChannelCount.js"],"names":[],"mappings":"AASA;;;;GAIG;AACH,6CAHW,MAAM,GACJ,MAAM,CAgBlB"}
@@ -1,4 +1,11 @@
1
- import { RedFormat, RedIntegerFormat, RGBAFormat, RGBFormat, RGFormat } from "three";
1
+ import { RedFormat, RedIntegerFormat, RGBAFormat, RGFormat } from "three";
2
+
3
+
4
+ /**
5
+ * WebGL constant, declared explicitly to avoid issues with later THREE.js versions where it is absent
6
+ * @type {number}
7
+ */
8
+ const RGBFormat = 1022;
2
9
 
3
10
  /**
4
11
  *