@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.
package/build/meep.cjs CHANGED
@@ -5464,7 +5464,7 @@ const UnsignedShort5551Type = 1018;
5464
5464
  const UnsignedShort565Type = 1019;
5465
5465
  const UnsignedInt248Type = 1020;
5466
5466
  const AlphaFormat = 1021;
5467
- const RGBFormat = 1022;
5467
+ const RGBFormat$1 = 1022;
5468
5468
  const RGBAFormat = 1023;
5469
5469
  const LuminanceFormat = 1024;
5470
5470
  const LuminanceAlphaFormat = 1025;
@@ -23396,7 +23396,7 @@ function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) {
23396
23396
  ( parameters.toneMapping !== NoToneMapping ) ? getToneMappingFunction( 'toneMapping', parameters.toneMapping ) : '',
23397
23397
 
23398
23398
  parameters.dithering ? '#define DITHERING' : '',
23399
- parameters.format === RGBFormat ? '#define OPAQUE' : '',
23399
+ parameters.format === RGBFormat$1 ? '#define OPAQUE' : '',
23400
23400
 
23401
23401
  ShaderChunk[ 'encodings_pars_fragment' ], // this code is required here because it is used by the various encoding/decoding function defined below
23402
23402
  parameters.map ? getTexelDecodingFunction( 'mapTexelToLinear', parameters.mapEncoding ) : '',
@@ -27494,7 +27494,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
27494
27494
 
27495
27495
  mipmap = mipmaps[ i ];
27496
27496
 
27497
- if ( texture.format !== RGBAFormat && texture.format !== RGBFormat ) {
27497
+ if ( texture.format !== RGBAFormat && texture.format !== RGBFormat$1 ) {
27498
27498
 
27499
27499
  if ( glFormat !== null ) {
27500
27500
 
@@ -27705,7 +27705,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
27705
27705
 
27706
27706
  const mipmap = mipmaps[ j ];
27707
27707
 
27708
- if ( texture.format !== RGBAFormat && texture.format !== RGBFormat ) {
27708
+ if ( texture.format !== RGBAFormat && texture.format !== RGBFormat$1 ) {
27709
27709
 
27710
27710
  if ( glFormat !== null ) {
27711
27711
 
@@ -28122,7 +28122,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
28122
28122
 
28123
28123
  // Handles WebGL2 RGBFormat fallback - #18858
28124
28124
 
28125
- if ( isWebGL2 && texture.format === RGBFormat && ( texture.type === FloatType || texture.type === HalfFloatType ) ) {
28125
+ if ( isWebGL2 && texture.format === RGBFormat$1 && ( texture.type === FloatType || texture.type === HalfFloatType ) ) {
28126
28126
 
28127
28127
  texture.format = RGBAFormat;
28128
28128
 
@@ -28467,7 +28467,7 @@ function WebGLUtils( gl, extensions, capabilities ) {
28467
28467
  }
28468
28468
 
28469
28469
  if ( p === AlphaFormat ) return 6406;
28470
- if ( p === RGBFormat ) return 6407;
28470
+ if ( p === RGBFormat$1 ) return 6407;
28471
28471
  if ( p === RGBAFormat ) return 6408;
28472
28472
  if ( p === LuminanceFormat ) return 6409;
28473
28473
  if ( p === LuminanceAlphaFormat ) return 6410;
@@ -29262,7 +29262,7 @@ class WebXRManager extends EventDispatcher {
29262
29262
  glProjLayer.textureWidth,
29263
29263
  glProjLayer.textureHeight,
29264
29264
  {
29265
- format: attributes.alpha ? RGBAFormat : RGBFormat,
29265
+ format: attributes.alpha ? RGBAFormat : RGBFormat$1,
29266
29266
  type: UnsignedByteType,
29267
29267
  depthTexture: new DepthTexture( glProjLayer.textureWidth, glProjLayer.textureHeight, depthType, undefined, undefined, undefined, undefined, undefined, undefined, depthFormat ),
29268
29268
  stencilBuffer: attributes.stencil,
@@ -34187,7 +34187,7 @@ class VideoTexture extends Texture {
34187
34187
 
34188
34188
  super( video, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
34189
34189
 
34190
- this.format = format !== undefined ? format : RGBFormat;
34190
+ this.format = format !== undefined ? format : RGBFormat$1;
34191
34191
 
34192
34192
  this.minFilter = minFilter !== undefined ? minFilter : LinearFilter;
34193
34193
  this.magFilter = magFilter !== undefined ? magFilter : LinearFilter;
@@ -58964,7 +58964,7 @@ function writeSample2DDataToDataTexture(sampler, texture) {
58964
58964
  throw new Error('itemSize is 2 and texture.format is not RGFormat');
58965
58965
  }
58966
58966
  } else if (sampler.itemSize === 3) {
58967
- if (texture.format !== RGBFormat) {
58967
+ if (texture.format !== RGBFormat$1) {
58968
58968
  throw new Error('itemSize is 2 and texture.format is not RGBFormat');
58969
58969
  }
58970
58970
  } else if (sampler.itemSize === 4) {
@@ -59188,7 +59188,7 @@ function channelCountToThreeTextureFormat(count) {
59188
59188
  case 2:
59189
59189
  return RGFormat;
59190
59190
  case 3:
59191
- return RGBFormat;
59191
+ return RGBFormat$1;
59192
59192
  case 4:
59193
59193
  return RGBAFormat;
59194
59194
  default:
@@ -62743,7 +62743,7 @@ class TerrainLayers {
62743
62743
  * @type {DataTexture2DArray}
62744
62744
  */
62745
62745
  this.texture = new DataTexture2DArray(new Uint8Array(3), 1, 1, 1);
62746
- this.texture.format = RGBFormat;
62746
+ this.texture.format = RGBFormat$1;
62747
62747
  this.texture.type = UnsignedByteType;
62748
62748
 
62749
62749
  this.texture.wrapS = RepeatWrapping;
@@ -67534,6 +67534,12 @@ const CopyShader = {
67534
67534
 
67535
67535
  };
67536
67536
 
67537
+ /**
67538
+ * WebGL constant, declared explicitly to avoid issues with later THREE.js versions where it is absent
67539
+ * @type {number}
67540
+ */
67541
+ const RGBFormat = 1022;
67542
+
67537
67543
  /**
67538
67544
  *
67539
67545
  * @param {number} format
@@ -88350,7 +88356,7 @@ class ColorAndDepthFrameBuffer extends FrameBuffer {
88350
88356
 
88351
88357
  const target = new WebGLMultisampleRenderTarget(size.x, size.y,{ignoreDepth: false});
88352
88358
 
88353
- target.texture.format = RGBFormat; // note, three.js required RGBA render texture, even though RGB would do here
88359
+ target.texture.format = RGBFormat$1; // note, three.js required RGBA render texture, even though RGB would do here
88354
88360
  target.texture.minFilter = NearestFilter;
88355
88361
  target.texture.magFilter = NearestFilter;
88356
88362
  target.texture.generateMipmaps = false;