mage-engine 3.22.6 → 3.22.7

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.
Files changed (2) hide show
  1. package/dist/mage.js +294 -27
  2. package/package.json +1 -1
package/dist/mage.js CHANGED
@@ -41959,7 +41959,7 @@ class Shape extends Path {
41959
41959
 
41960
41960
  }
41961
41961
 
41962
- class Light$1 extends Object3D {
41962
+ class Light$2 extends Object3D {
41963
41963
 
41964
41964
  constructor( color, intensity = 1 ) {
41965
41965
 
@@ -42005,9 +42005,9 @@ class Light$1 extends Object3D {
42005
42005
 
42006
42006
  }
42007
42007
 
42008
- Light$1.prototype.isLight = true;
42008
+ Light$2.prototype.isLight = true;
42009
42009
 
42010
- class HemisphereLight$1 extends Light$1 {
42010
+ class HemisphereLight$1 extends Light$2 {
42011
42011
 
42012
42012
  constructor( skyColor, groundColor, intensity ) {
42013
42013
 
@@ -42024,7 +42024,7 @@ class HemisphereLight$1 extends Light$1 {
42024
42024
 
42025
42025
  copy( source ) {
42026
42026
 
42027
- Light$1.prototype.copy.call( this, source );
42027
+ Light$2.prototype.copy.call( this, source );
42028
42028
 
42029
42029
  this.groundColor.copy( source.groundColor );
42030
42030
 
@@ -42195,7 +42195,7 @@ class SpotLightShadow extends LightShadow {
42195
42195
 
42196
42196
  SpotLightShadow.prototype.isSpotLightShadow = true;
42197
42197
 
42198
- class SpotLight$1 extends Light$1 {
42198
+ class SpotLight$1 extends Light$2 {
42199
42199
 
42200
42200
  constructor( color, intensity, distance = 0, angle = Math.PI / 3, penumbra = 0, decay = 1 ) {
42201
42201
 
@@ -42333,7 +42333,7 @@ class PointLightShadow extends LightShadow {
42333
42333
 
42334
42334
  PointLightShadow.prototype.isPointLightShadow = true;
42335
42335
 
42336
- class PointLight$1 extends Light$1 {
42336
+ class PointLight$1 extends Light$2 {
42337
42337
 
42338
42338
  constructor( color, intensity, distance = 0, decay = 1 ) {
42339
42339
 
@@ -42526,7 +42526,7 @@ class DirectionalLightShadow extends LightShadow {
42526
42526
 
42527
42527
  DirectionalLightShadow.prototype.isDirectionalLightShadow = true;
42528
42528
 
42529
- class DirectionalLight extends Light$1 {
42529
+ class DirectionalLight extends Light$2 {
42530
42530
 
42531
42531
  constructor( color, intensity ) {
42532
42532
 
@@ -42558,7 +42558,7 @@ class DirectionalLight extends Light$1 {
42558
42558
 
42559
42559
  DirectionalLight.prototype.isDirectionalLight = true;
42560
42560
 
42561
- class AmbientLight$1 extends Light$1 {
42561
+ class AmbientLight$1 extends Light$2 {
42562
42562
 
42563
42563
  constructor( color, intensity ) {
42564
42564
 
@@ -42572,7 +42572,7 @@ class AmbientLight$1 extends Light$1 {
42572
42572
 
42573
42573
  AmbientLight$1.prototype.isAmbientLight = true;
42574
42574
 
42575
- class RectAreaLight extends Light$1 {
42575
+ class RectAreaLight extends Light$2 {
42576
42576
 
42577
42577
  constructor( color, intensity, width = 10, height = 10 ) {
42578
42578
 
@@ -42851,7 +42851,7 @@ class SphericalHarmonics3 {
42851
42851
 
42852
42852
  SphericalHarmonics3.prototype.isSphericalHarmonics3 = true;
42853
42853
 
42854
- class LightProbe extends Light$1 {
42854
+ class LightProbe extends Light$2 {
42855
42855
 
42856
42856
  constructor( sh = new SphericalHarmonics3(), intensity = 1 ) {
42857
42857
 
@@ -52789,7 +52789,7 @@ PerspectiveCamera.prototype.setLens = function ( focalLength, filmGauge ) {
52789
52789
 
52790
52790
  //
52791
52791
 
52792
- Object.defineProperties( Light$1.prototype, {
52792
+ Object.defineProperties( Light$2.prototype, {
52793
52793
  onlyShadow: {
52794
52794
  set: function () {
52795
52795
 
@@ -53918,7 +53918,7 @@ if ( typeof window !== 'undefined' ) {
53918
53918
 
53919
53919
  }
53920
53920
 
53921
- }var three_module=/*#__PURE__*/Object.freeze({__proto__:null,ACESFilmicToneMapping:ACESFilmicToneMapping,AddEquation:AddEquation,AddOperation:AddOperation,AdditiveAnimationBlendMode:AdditiveAnimationBlendMode,AdditiveBlending:AdditiveBlending,AlphaFormat:AlphaFormat,AlwaysDepth:AlwaysDepth,AlwaysStencilFunc:AlwaysStencilFunc,AmbientLight:AmbientLight$1,AmbientLightProbe:AmbientLightProbe,AnimationClip:AnimationClip,AnimationLoader:AnimationLoader,AnimationMixer:AnimationMixer,AnimationObjectGroup:AnimationObjectGroup,AnimationUtils:AnimationUtils,ArcCurve:ArcCurve,ArrayCamera:ArrayCamera,ArrowHelper:ArrowHelper,Audio:Audio$2,AudioAnalyser:AudioAnalyser,AudioContext:AudioContext,AudioListener:AudioListener,AudioLoader:AudioLoader,AxesHelper:AxesHelper$1,AxisHelper:AxisHelper,BackSide:BackSide,BasicDepthPacking:BasicDepthPacking,BasicShadowMap:BasicShadowMap,BinaryTextureLoader:BinaryTextureLoader,Bone:Bone,BooleanKeyframeTrack:BooleanKeyframeTrack,BoundingBoxHelper:BoundingBoxHelper,Box2:Box2,Box3:Box3,Box3Helper:Box3Helper,BoxBufferGeometry:BoxGeometry,BoxGeometry:BoxGeometry,BoxHelper:BoxHelper,BufferAttribute:BufferAttribute,BufferGeometry:BufferGeometry,BufferGeometryLoader:BufferGeometryLoader,ByteType:ByteType,Cache:Cache,Camera:Camera$1,CameraHelper:CameraHelper,CanvasRenderer:CanvasRenderer,CanvasTexture:CanvasTexture,CatmullRomCurve3:CatmullRomCurve3,CineonToneMapping:CineonToneMapping,CircleBufferGeometry:CircleGeometry,CircleGeometry:CircleGeometry,ClampToEdgeWrapping:ClampToEdgeWrapping,Clock:Clock,Color:Color$1,ColorKeyframeTrack:ColorKeyframeTrack,CompressedTexture:CompressedTexture,CompressedTextureLoader:CompressedTextureLoader,ConeBufferGeometry:ConeGeometry,ConeGeometry:ConeGeometry,CubeCamera:CubeCamera,CubeReflectionMapping:CubeReflectionMapping,CubeRefractionMapping:CubeRefractionMapping,CubeTexture:CubeTexture,CubeTextureLoader:CubeTextureLoader,CubeUVReflectionMapping:CubeUVReflectionMapping,CubeUVRefractionMapping:CubeUVRefractionMapping,CubicBezierCurve:CubicBezierCurve,CubicBezierCurve3:CubicBezierCurve3,CubicInterpolant:CubicInterpolant,CullFaceBack:CullFaceBack,CullFaceFront:CullFaceFront,CullFaceFrontBack:CullFaceFrontBack,CullFaceNone:CullFaceNone,Curve:Curve,CurvePath:CurvePath,CustomBlending:CustomBlending,CustomToneMapping:CustomToneMapping,CylinderBufferGeometry:CylinderGeometry,CylinderGeometry:CylinderGeometry,Cylindrical:Cylindrical,DataTexture:DataTexture,DataTexture2DArray:DataTexture2DArray,DataTexture3D:DataTexture3D,DataTextureLoader:DataTextureLoader,DataUtils:DataUtils,DecrementStencilOp:DecrementStencilOp,DecrementWrapStencilOp:DecrementWrapStencilOp,DefaultLoadingManager:DefaultLoadingManager,DepthFormat:DepthFormat,DepthStencilFormat:DepthStencilFormat,DepthTexture:DepthTexture,DirectionalLight:DirectionalLight,DirectionalLightHelper:DirectionalLightHelper,DiscreteInterpolant:DiscreteInterpolant,DodecahedronBufferGeometry:DodecahedronGeometry,DodecahedronGeometry:DodecahedronGeometry,DoubleSide:DoubleSide,DstAlphaFactor:DstAlphaFactor,DstColorFactor:DstColorFactor,DynamicBufferAttribute:DynamicBufferAttribute,DynamicCopyUsage:DynamicCopyUsage,DynamicDrawUsage:DynamicDrawUsage,DynamicReadUsage:DynamicReadUsage,EdgesGeometry:EdgesGeometry,EdgesHelper:EdgesHelper,EllipseCurve:EllipseCurve,EqualDepth:EqualDepth,EqualStencilFunc:EqualStencilFunc,EquirectangularReflectionMapping:EquirectangularReflectionMapping,EquirectangularRefractionMapping:EquirectangularRefractionMapping,Euler:Euler,EventDispatcher:EventDispatcher,ExtrudeBufferGeometry:ExtrudeGeometry,ExtrudeGeometry:ExtrudeGeometry,FaceColors:FaceColors,FileLoader:FileLoader,FlatShading:FlatShading,Float16BufferAttribute:Float16BufferAttribute,Float32Attribute:Float32Attribute,Float32BufferAttribute:Float32BufferAttribute,Float64Attribute:Float64Attribute,Float64BufferAttribute:Float64BufferAttribute,FloatType:FloatType$1,Fog:Fog,FogExp2:FogExp2,Font:Font,FontLoader:FontLoader,FrontSide:FrontSide,Frustum:Frustum$1,GLBufferAttribute:GLBufferAttribute,GLSL1:GLSL1,GLSL3:GLSL3,GammaEncoding:GammaEncoding,GreaterDepth:GreaterDepth,GreaterEqualDepth:GreaterEqualDepth,GreaterEqualStencilFunc:GreaterEqualStencilFunc,GreaterStencilFunc:GreaterStencilFunc,GridHelper:GridHelper,Group:Group,HalfFloatType:HalfFloatType,HemisphereLight:HemisphereLight$1,HemisphereLightHelper:HemisphereLightHelper,HemisphereLightProbe:HemisphereLightProbe,IcosahedronBufferGeometry:IcosahedronGeometry,IcosahedronGeometry:IcosahedronGeometry,ImageBitmapLoader:ImageBitmapLoader,ImageLoader:ImageLoader,ImageUtils:ImageUtils,ImmediateRenderObject:ImmediateRenderObject,IncrementStencilOp:IncrementStencilOp,IncrementWrapStencilOp:IncrementWrapStencilOp,InstancedBufferAttribute:InstancedBufferAttribute,InstancedBufferGeometry:InstancedBufferGeometry,InstancedInterleavedBuffer:InstancedInterleavedBuffer,InstancedMesh:InstancedMesh,Int16Attribute:Int16Attribute,Int16BufferAttribute:Int16BufferAttribute,Int32Attribute:Int32Attribute,Int32BufferAttribute:Int32BufferAttribute,Int8Attribute:Int8Attribute,Int8BufferAttribute:Int8BufferAttribute,IntType:IntType,InterleavedBuffer:InterleavedBuffer,InterleavedBufferAttribute:InterleavedBufferAttribute,Interpolant:Interpolant,InterpolateDiscrete:InterpolateDiscrete,InterpolateLinear:InterpolateLinear,InterpolateSmooth:InterpolateSmooth,InvertStencilOp:InvertStencilOp,JSONLoader:JSONLoader,KeepStencilOp:KeepStencilOp,KeyframeTrack:KeyframeTrack,LOD:LOD,LatheBufferGeometry:LatheGeometry,LatheGeometry:LatheGeometry,Layers:Layers,LensFlare:LensFlare,LessDepth:LessDepth,LessEqualDepth:LessEqualDepth,LessEqualStencilFunc:LessEqualStencilFunc,LessStencilFunc:LessStencilFunc,Light:Light$1,LightProbe:LightProbe,Line:Line$1,Line3:Line3,LineBasicMaterial:LineBasicMaterial,LineCurve:LineCurve,LineCurve3:LineCurve3,LineDashedMaterial:LineDashedMaterial,LineLoop:LineLoop,LinePieces:LinePieces,LineSegments:LineSegments,LineStrip:LineStrip,LinearEncoding:LinearEncoding,LinearFilter:LinearFilter,LinearInterpolant:LinearInterpolant,LinearMipMapLinearFilter:LinearMipMapLinearFilter,LinearMipMapNearestFilter:LinearMipMapNearestFilter,LinearMipmapLinearFilter:LinearMipmapLinearFilter,LinearMipmapNearestFilter:LinearMipmapNearestFilter,LinearToneMapping:LinearToneMapping,Loader:Loader$1,LoaderUtils:LoaderUtils,LoadingManager:LoadingManager,LogLuvEncoding:LogLuvEncoding,LoopOnce:LoopOnce,LoopPingPong:LoopPingPong,LoopRepeat:LoopRepeat,LuminanceAlphaFormat:LuminanceAlphaFormat,LuminanceFormat:LuminanceFormat,MOUSE:MOUSE,Material:Material,MaterialLoader:MaterialLoader,Math:MathUtils,MathUtils:MathUtils,Matrix3:Matrix3,Matrix4:Matrix4,MaxEquation:MaxEquation,Mesh:Mesh,MeshBasicMaterial:MeshBasicMaterial,MeshDepthMaterial:MeshDepthMaterial,MeshDistanceMaterial:MeshDistanceMaterial,MeshFaceMaterial:MeshFaceMaterial,MeshLambertMaterial:MeshLambertMaterial,MeshMatcapMaterial:MeshMatcapMaterial,MeshNormalMaterial:MeshNormalMaterial,MeshPhongMaterial:MeshPhongMaterial,MeshPhysicalMaterial:MeshPhysicalMaterial,MeshStandardMaterial:MeshStandardMaterial,MeshToonMaterial:MeshToonMaterial,MinEquation:MinEquation,MirroredRepeatWrapping:MirroredRepeatWrapping,MixOperation:MixOperation,MultiMaterial:MultiMaterial,MultiplyBlending:MultiplyBlending,MultiplyOperation:MultiplyOperation,NearestFilter:NearestFilter,NearestMipMapLinearFilter:NearestMipMapLinearFilter,NearestMipMapNearestFilter:NearestMipMapNearestFilter,NearestMipmapLinearFilter:NearestMipmapLinearFilter,NearestMipmapNearestFilter:NearestMipmapNearestFilter,NeverDepth:NeverDepth,NeverStencilFunc:NeverStencilFunc,NoBlending:NoBlending,NoColors:NoColors,NoToneMapping:NoToneMapping,NormalAnimationBlendMode:NormalAnimationBlendMode,NormalBlending:NormalBlending,NotEqualDepth:NotEqualDepth,NotEqualStencilFunc:NotEqualStencilFunc,NumberKeyframeTrack:NumberKeyframeTrack,Object3D:Object3D,ObjectLoader:ObjectLoader,ObjectSpaceNormalMap:ObjectSpaceNormalMap,OctahedronBufferGeometry:OctahedronGeometry,OctahedronGeometry:OctahedronGeometry,OneFactor:OneFactor,OneMinusDstAlphaFactor:OneMinusDstAlphaFactor,OneMinusDstColorFactor:OneMinusDstColorFactor,OneMinusSrcAlphaFactor:OneMinusSrcAlphaFactor,OneMinusSrcColorFactor:OneMinusSrcColorFactor,OrthographicCamera:OrthographicCamera,PCFShadowMap:PCFShadowMap,PCFSoftShadowMap:PCFSoftShadowMap,PMREMGenerator:PMREMGenerator,ParametricBufferGeometry:ParametricGeometry,ParametricGeometry:ParametricGeometry,Particle:Particle,ParticleBasicMaterial:ParticleBasicMaterial,ParticleSystem:ParticleSystem,ParticleSystemMaterial:ParticleSystemMaterial,Path:Path,PerspectiveCamera:PerspectiveCamera,Plane:Plane$1,PlaneBufferGeometry:PlaneGeometry,PlaneGeometry:PlaneGeometry,PlaneHelper:PlaneHelper,PointCloud:PointCloud,PointCloudMaterial:PointCloudMaterial,PointLight:PointLight$1,PointLightHelper:PointLightHelper,Points:Points,PointsMaterial:PointsMaterial,PolarGridHelper:PolarGridHelper,PolyhedronBufferGeometry:PolyhedronGeometry,PolyhedronGeometry:PolyhedronGeometry,PositionalAudio:PositionalAudio,PropertyBinding:PropertyBinding,PropertyMixer:PropertyMixer,QuadraticBezierCurve:QuadraticBezierCurve,QuadraticBezierCurve3:QuadraticBezierCurve3,Quaternion:Quaternion,QuaternionKeyframeTrack:QuaternionKeyframeTrack,QuaternionLinearInterpolant:QuaternionLinearInterpolant,REVISION:REVISION,RGBADepthPacking:RGBADepthPacking,RGBAFormat:RGBAFormat,RGBAIntegerFormat:RGBAIntegerFormat,RGBA_ASTC_10x10_Format:RGBA_ASTC_10x10_Format,RGBA_ASTC_10x5_Format:RGBA_ASTC_10x5_Format,RGBA_ASTC_10x6_Format:RGBA_ASTC_10x6_Format,RGBA_ASTC_10x8_Format:RGBA_ASTC_10x8_Format,RGBA_ASTC_12x10_Format:RGBA_ASTC_12x10_Format,RGBA_ASTC_12x12_Format:RGBA_ASTC_12x12_Format,RGBA_ASTC_4x4_Format:RGBA_ASTC_4x4_Format,RGBA_ASTC_5x4_Format:RGBA_ASTC_5x4_Format,RGBA_ASTC_5x5_Format:RGBA_ASTC_5x5_Format,RGBA_ASTC_6x5_Format:RGBA_ASTC_6x5_Format,RGBA_ASTC_6x6_Format:RGBA_ASTC_6x6_Format,RGBA_ASTC_8x5_Format:RGBA_ASTC_8x5_Format,RGBA_ASTC_8x6_Format:RGBA_ASTC_8x6_Format,RGBA_ASTC_8x8_Format:RGBA_ASTC_8x8_Format,RGBA_BPTC_Format:RGBA_BPTC_Format,RGBA_ETC2_EAC_Format:RGBA_ETC2_EAC_Format,RGBA_PVRTC_2BPPV1_Format:RGBA_PVRTC_2BPPV1_Format,RGBA_PVRTC_4BPPV1_Format:RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT1_Format:RGBA_S3TC_DXT1_Format,RGBA_S3TC_DXT3_Format:RGBA_S3TC_DXT3_Format,RGBA_S3TC_DXT5_Format:RGBA_S3TC_DXT5_Format,RGBDEncoding:RGBDEncoding,RGBEEncoding:RGBEEncoding,RGBEFormat:RGBEFormat,RGBFormat:RGBFormat,RGBIntegerFormat:RGBIntegerFormat,RGBM16Encoding:RGBM16Encoding,RGBM7Encoding:RGBM7Encoding,RGB_ETC1_Format:RGB_ETC1_Format,RGB_ETC2_Format:RGB_ETC2_Format,RGB_PVRTC_2BPPV1_Format:RGB_PVRTC_2BPPV1_Format,RGB_PVRTC_4BPPV1_Format:RGB_PVRTC_4BPPV1_Format,RGB_S3TC_DXT1_Format:RGB_S3TC_DXT1_Format,RGFormat:RGFormat,RGIntegerFormat:RGIntegerFormat,RawShaderMaterial:RawShaderMaterial,Ray:Ray,Raycaster:Raycaster,RectAreaLight:RectAreaLight,RedFormat:RedFormat,RedIntegerFormat:RedIntegerFormat,ReinhardToneMapping:ReinhardToneMapping,RepeatWrapping:RepeatWrapping$1,ReplaceStencilOp:ReplaceStencilOp,ReverseSubtractEquation:ReverseSubtractEquation,RingBufferGeometry:RingGeometry,RingGeometry:RingGeometry,SRGB8_ALPHA8_ASTC_10x10_Format:SRGB8_ALPHA8_ASTC_10x10_Format,SRGB8_ALPHA8_ASTC_10x5_Format:SRGB8_ALPHA8_ASTC_10x5_Format,SRGB8_ALPHA8_ASTC_10x6_Format:SRGB8_ALPHA8_ASTC_10x6_Format,SRGB8_ALPHA8_ASTC_10x8_Format:SRGB8_ALPHA8_ASTC_10x8_Format,SRGB8_ALPHA8_ASTC_12x10_Format:SRGB8_ALPHA8_ASTC_12x10_Format,SRGB8_ALPHA8_ASTC_12x12_Format:SRGB8_ALPHA8_ASTC_12x12_Format,SRGB8_ALPHA8_ASTC_4x4_Format:SRGB8_ALPHA8_ASTC_4x4_Format,SRGB8_ALPHA8_ASTC_5x4_Format:SRGB8_ALPHA8_ASTC_5x4_Format,SRGB8_ALPHA8_ASTC_5x5_Format:SRGB8_ALPHA8_ASTC_5x5_Format,SRGB8_ALPHA8_ASTC_6x5_Format:SRGB8_ALPHA8_ASTC_6x5_Format,SRGB8_ALPHA8_ASTC_6x6_Format:SRGB8_ALPHA8_ASTC_6x6_Format,SRGB8_ALPHA8_ASTC_8x5_Format:SRGB8_ALPHA8_ASTC_8x5_Format,SRGB8_ALPHA8_ASTC_8x6_Format:SRGB8_ALPHA8_ASTC_8x6_Format,SRGB8_ALPHA8_ASTC_8x8_Format:SRGB8_ALPHA8_ASTC_8x8_Format,Scene:Scene$2,SceneUtils:SceneUtils,ShaderChunk:ShaderChunk,ShaderLib:ShaderLib,ShaderMaterial:ShaderMaterial,ShadowMaterial:ShadowMaterial,Shape:Shape,ShapeBufferGeometry:ShapeGeometry,ShapeGeometry:ShapeGeometry,ShapePath:ShapePath,ShapeUtils:ShapeUtils,ShortType:ShortType,Skeleton:Skeleton,SkeletonHelper:SkeletonHelper,SkinnedMesh:SkinnedMesh,SmoothShading:SmoothShading,Sphere:Sphere$1,SphereBufferGeometry:SphereGeometry,SphereGeometry:SphereGeometry,Spherical:Spherical,SphericalHarmonics3:SphericalHarmonics3,SplineCurve:SplineCurve,SpotLight:SpotLight$1,SpotLightHelper:SpotLightHelper,Sprite:Sprite$1,SpriteMaterial:SpriteMaterial,SrcAlphaFactor:SrcAlphaFactor,SrcAlphaSaturateFactor:SrcAlphaSaturateFactor,SrcColorFactor:SrcColorFactor,StaticCopyUsage:StaticCopyUsage,StaticDrawUsage:StaticDrawUsage,StaticReadUsage:StaticReadUsage,StereoCamera:StereoCamera,StreamCopyUsage:StreamCopyUsage,StreamDrawUsage:StreamDrawUsage,StreamReadUsage:StreamReadUsage,StringKeyframeTrack:StringKeyframeTrack,SubtractEquation:SubtractEquation,SubtractiveBlending:SubtractiveBlending,TOUCH:TOUCH,TangentSpaceNormalMap:TangentSpaceNormalMap,TetrahedronBufferGeometry:TetrahedronGeometry,TetrahedronGeometry:TetrahedronGeometry,TextBufferGeometry:TextGeometry,TextGeometry:TextGeometry,Texture:Texture,TextureLoader:TextureLoader,TorusBufferGeometry:TorusGeometry,TorusGeometry:TorusGeometry,TorusKnotBufferGeometry:TorusKnotGeometry,TorusKnotGeometry:TorusKnotGeometry,Triangle:Triangle,TriangleFanDrawMode:TriangleFanDrawMode,TriangleStripDrawMode:TriangleStripDrawMode,TrianglesDrawMode:TrianglesDrawMode,TubeBufferGeometry:TubeGeometry,TubeGeometry:TubeGeometry,UVMapping:UVMapping,Uint16Attribute:Uint16Attribute,Uint16BufferAttribute:Uint16BufferAttribute,Uint32Attribute:Uint32Attribute,Uint32BufferAttribute:Uint32BufferAttribute,Uint8Attribute:Uint8Attribute,Uint8BufferAttribute:Uint8BufferAttribute,Uint8ClampedAttribute:Uint8ClampedAttribute,Uint8ClampedBufferAttribute:Uint8ClampedBufferAttribute,Uniform:Uniform,UniformsLib:UniformsLib,UniformsUtils:UniformsUtils,UnsignedByteType:UnsignedByteType,UnsignedInt248Type:UnsignedInt248Type,UnsignedIntType:UnsignedIntType,UnsignedShort4444Type:UnsignedShort4444Type,UnsignedShort5551Type:UnsignedShort5551Type,UnsignedShort565Type:UnsignedShort565Type,UnsignedShortType:UnsignedShortType,VSMShadowMap:VSMShadowMap,Vector2:Vector2,Vector3:Vector3$1,Vector4:Vector4,VectorKeyframeTrack:VectorKeyframeTrack,Vertex:Vertex,VertexColors:VertexColors,VideoTexture:VideoTexture,WebGL1Renderer:WebGL1Renderer,WebGLCubeRenderTarget:WebGLCubeRenderTarget,WebGLMultisampleRenderTarget:WebGLMultisampleRenderTarget,WebGLRenderTarget:WebGLRenderTarget,WebGLRenderTargetCube:WebGLRenderTargetCube,WebGLRenderer:WebGLRenderer,WebGLUtils:WebGLUtils,WireframeGeometry:WireframeGeometry,WireframeHelper:WireframeHelper,WrapAroundEnding:WrapAroundEnding,XHRLoader:XHRLoader,ZeroCurvatureEnding:ZeroCurvatureEnding,ZeroFactor:ZeroFactor,ZeroSlopeEnding:ZeroSlopeEnding,ZeroStencilOp:ZeroStencilOp,sRGBEncoding:sRGBEncoding});var PREFIX = "[Mage]";
53921
+ }var three_module=/*#__PURE__*/Object.freeze({__proto__:null,ACESFilmicToneMapping:ACESFilmicToneMapping,AddEquation:AddEquation,AddOperation:AddOperation,AdditiveAnimationBlendMode:AdditiveAnimationBlendMode,AdditiveBlending:AdditiveBlending,AlphaFormat:AlphaFormat,AlwaysDepth:AlwaysDepth,AlwaysStencilFunc:AlwaysStencilFunc,AmbientLight:AmbientLight$1,AmbientLightProbe:AmbientLightProbe,AnimationClip:AnimationClip,AnimationLoader:AnimationLoader,AnimationMixer:AnimationMixer,AnimationObjectGroup:AnimationObjectGroup,AnimationUtils:AnimationUtils,ArcCurve:ArcCurve,ArrayCamera:ArrayCamera,ArrowHelper:ArrowHelper,Audio:Audio$2,AudioAnalyser:AudioAnalyser,AudioContext:AudioContext,AudioListener:AudioListener,AudioLoader:AudioLoader,AxesHelper:AxesHelper$1,AxisHelper:AxisHelper,BackSide:BackSide,BasicDepthPacking:BasicDepthPacking,BasicShadowMap:BasicShadowMap,BinaryTextureLoader:BinaryTextureLoader,Bone:Bone,BooleanKeyframeTrack:BooleanKeyframeTrack,BoundingBoxHelper:BoundingBoxHelper,Box2:Box2,Box3:Box3,Box3Helper:Box3Helper,BoxBufferGeometry:BoxGeometry,BoxGeometry:BoxGeometry,BoxHelper:BoxHelper,BufferAttribute:BufferAttribute,BufferGeometry:BufferGeometry,BufferGeometryLoader:BufferGeometryLoader,ByteType:ByteType,Cache:Cache,Camera:Camera$1,CameraHelper:CameraHelper,CanvasRenderer:CanvasRenderer,CanvasTexture:CanvasTexture,CatmullRomCurve3:CatmullRomCurve3,CineonToneMapping:CineonToneMapping,CircleBufferGeometry:CircleGeometry,CircleGeometry:CircleGeometry,ClampToEdgeWrapping:ClampToEdgeWrapping,Clock:Clock,Color:Color$1,ColorKeyframeTrack:ColorKeyframeTrack,CompressedTexture:CompressedTexture,CompressedTextureLoader:CompressedTextureLoader,ConeBufferGeometry:ConeGeometry,ConeGeometry:ConeGeometry,CubeCamera:CubeCamera,CubeReflectionMapping:CubeReflectionMapping,CubeRefractionMapping:CubeRefractionMapping,CubeTexture:CubeTexture,CubeTextureLoader:CubeTextureLoader,CubeUVReflectionMapping:CubeUVReflectionMapping,CubeUVRefractionMapping:CubeUVRefractionMapping,CubicBezierCurve:CubicBezierCurve,CubicBezierCurve3:CubicBezierCurve3,CubicInterpolant:CubicInterpolant,CullFaceBack:CullFaceBack,CullFaceFront:CullFaceFront,CullFaceFrontBack:CullFaceFrontBack,CullFaceNone:CullFaceNone,Curve:Curve,CurvePath:CurvePath,CustomBlending:CustomBlending,CustomToneMapping:CustomToneMapping,CylinderBufferGeometry:CylinderGeometry,CylinderGeometry:CylinderGeometry,Cylindrical:Cylindrical,DataTexture:DataTexture,DataTexture2DArray:DataTexture2DArray,DataTexture3D:DataTexture3D,DataTextureLoader:DataTextureLoader,DataUtils:DataUtils,DecrementStencilOp:DecrementStencilOp,DecrementWrapStencilOp:DecrementWrapStencilOp,DefaultLoadingManager:DefaultLoadingManager,DepthFormat:DepthFormat,DepthStencilFormat:DepthStencilFormat,DepthTexture:DepthTexture,DirectionalLight:DirectionalLight,DirectionalLightHelper:DirectionalLightHelper,DiscreteInterpolant:DiscreteInterpolant,DodecahedronBufferGeometry:DodecahedronGeometry,DodecahedronGeometry:DodecahedronGeometry,DoubleSide:DoubleSide,DstAlphaFactor:DstAlphaFactor,DstColorFactor:DstColorFactor,DynamicBufferAttribute:DynamicBufferAttribute,DynamicCopyUsage:DynamicCopyUsage,DynamicDrawUsage:DynamicDrawUsage,DynamicReadUsage:DynamicReadUsage,EdgesGeometry:EdgesGeometry,EdgesHelper:EdgesHelper,EllipseCurve:EllipseCurve,EqualDepth:EqualDepth,EqualStencilFunc:EqualStencilFunc,EquirectangularReflectionMapping:EquirectangularReflectionMapping,EquirectangularRefractionMapping:EquirectangularRefractionMapping,Euler:Euler,EventDispatcher:EventDispatcher,ExtrudeBufferGeometry:ExtrudeGeometry,ExtrudeGeometry:ExtrudeGeometry,FaceColors:FaceColors,FileLoader:FileLoader,FlatShading:FlatShading,Float16BufferAttribute:Float16BufferAttribute,Float32Attribute:Float32Attribute,Float32BufferAttribute:Float32BufferAttribute,Float64Attribute:Float64Attribute,Float64BufferAttribute:Float64BufferAttribute,FloatType:FloatType$1,Fog:Fog,FogExp2:FogExp2,Font:Font,FontLoader:FontLoader,FrontSide:FrontSide,Frustum:Frustum$1,GLBufferAttribute:GLBufferAttribute,GLSL1:GLSL1,GLSL3:GLSL3,GammaEncoding:GammaEncoding,GreaterDepth:GreaterDepth,GreaterEqualDepth:GreaterEqualDepth,GreaterEqualStencilFunc:GreaterEqualStencilFunc,GreaterStencilFunc:GreaterStencilFunc,GridHelper:GridHelper,Group:Group,HalfFloatType:HalfFloatType,HemisphereLight:HemisphereLight$1,HemisphereLightHelper:HemisphereLightHelper,HemisphereLightProbe:HemisphereLightProbe,IcosahedronBufferGeometry:IcosahedronGeometry,IcosahedronGeometry:IcosahedronGeometry,ImageBitmapLoader:ImageBitmapLoader,ImageLoader:ImageLoader,ImageUtils:ImageUtils,ImmediateRenderObject:ImmediateRenderObject,IncrementStencilOp:IncrementStencilOp,IncrementWrapStencilOp:IncrementWrapStencilOp,InstancedBufferAttribute:InstancedBufferAttribute,InstancedBufferGeometry:InstancedBufferGeometry,InstancedInterleavedBuffer:InstancedInterleavedBuffer,InstancedMesh:InstancedMesh,Int16Attribute:Int16Attribute,Int16BufferAttribute:Int16BufferAttribute,Int32Attribute:Int32Attribute,Int32BufferAttribute:Int32BufferAttribute,Int8Attribute:Int8Attribute,Int8BufferAttribute:Int8BufferAttribute,IntType:IntType,InterleavedBuffer:InterleavedBuffer,InterleavedBufferAttribute:InterleavedBufferAttribute,Interpolant:Interpolant,InterpolateDiscrete:InterpolateDiscrete,InterpolateLinear:InterpolateLinear,InterpolateSmooth:InterpolateSmooth,InvertStencilOp:InvertStencilOp,JSONLoader:JSONLoader,KeepStencilOp:KeepStencilOp,KeyframeTrack:KeyframeTrack,LOD:LOD,LatheBufferGeometry:LatheGeometry,LatheGeometry:LatheGeometry,Layers:Layers,LensFlare:LensFlare,LessDepth:LessDepth,LessEqualDepth:LessEqualDepth,LessEqualStencilFunc:LessEqualStencilFunc,LessStencilFunc:LessStencilFunc,Light:Light$2,LightProbe:LightProbe,Line:Line$1,Line3:Line3,LineBasicMaterial:LineBasicMaterial,LineCurve:LineCurve,LineCurve3:LineCurve3,LineDashedMaterial:LineDashedMaterial,LineLoop:LineLoop,LinePieces:LinePieces,LineSegments:LineSegments,LineStrip:LineStrip,LinearEncoding:LinearEncoding,LinearFilter:LinearFilter,LinearInterpolant:LinearInterpolant,LinearMipMapLinearFilter:LinearMipMapLinearFilter,LinearMipMapNearestFilter:LinearMipMapNearestFilter,LinearMipmapLinearFilter:LinearMipmapLinearFilter,LinearMipmapNearestFilter:LinearMipmapNearestFilter,LinearToneMapping:LinearToneMapping,Loader:Loader$1,LoaderUtils:LoaderUtils,LoadingManager:LoadingManager,LogLuvEncoding:LogLuvEncoding,LoopOnce:LoopOnce,LoopPingPong:LoopPingPong,LoopRepeat:LoopRepeat,LuminanceAlphaFormat:LuminanceAlphaFormat,LuminanceFormat:LuminanceFormat,MOUSE:MOUSE,Material:Material,MaterialLoader:MaterialLoader,Math:MathUtils,MathUtils:MathUtils,Matrix3:Matrix3,Matrix4:Matrix4,MaxEquation:MaxEquation,Mesh:Mesh,MeshBasicMaterial:MeshBasicMaterial,MeshDepthMaterial:MeshDepthMaterial,MeshDistanceMaterial:MeshDistanceMaterial,MeshFaceMaterial:MeshFaceMaterial,MeshLambertMaterial:MeshLambertMaterial,MeshMatcapMaterial:MeshMatcapMaterial,MeshNormalMaterial:MeshNormalMaterial,MeshPhongMaterial:MeshPhongMaterial,MeshPhysicalMaterial:MeshPhysicalMaterial,MeshStandardMaterial:MeshStandardMaterial,MeshToonMaterial:MeshToonMaterial,MinEquation:MinEquation,MirroredRepeatWrapping:MirroredRepeatWrapping,MixOperation:MixOperation,MultiMaterial:MultiMaterial,MultiplyBlending:MultiplyBlending,MultiplyOperation:MultiplyOperation,NearestFilter:NearestFilter,NearestMipMapLinearFilter:NearestMipMapLinearFilter,NearestMipMapNearestFilter:NearestMipMapNearestFilter,NearestMipmapLinearFilter:NearestMipmapLinearFilter,NearestMipmapNearestFilter:NearestMipmapNearestFilter,NeverDepth:NeverDepth,NeverStencilFunc:NeverStencilFunc,NoBlending:NoBlending,NoColors:NoColors,NoToneMapping:NoToneMapping,NormalAnimationBlendMode:NormalAnimationBlendMode,NormalBlending:NormalBlending,NotEqualDepth:NotEqualDepth,NotEqualStencilFunc:NotEqualStencilFunc,NumberKeyframeTrack:NumberKeyframeTrack,Object3D:Object3D,ObjectLoader:ObjectLoader,ObjectSpaceNormalMap:ObjectSpaceNormalMap,OctahedronBufferGeometry:OctahedronGeometry,OctahedronGeometry:OctahedronGeometry,OneFactor:OneFactor,OneMinusDstAlphaFactor:OneMinusDstAlphaFactor,OneMinusDstColorFactor:OneMinusDstColorFactor,OneMinusSrcAlphaFactor:OneMinusSrcAlphaFactor,OneMinusSrcColorFactor:OneMinusSrcColorFactor,OrthographicCamera:OrthographicCamera,PCFShadowMap:PCFShadowMap,PCFSoftShadowMap:PCFSoftShadowMap,PMREMGenerator:PMREMGenerator,ParametricBufferGeometry:ParametricGeometry,ParametricGeometry:ParametricGeometry,Particle:Particle,ParticleBasicMaterial:ParticleBasicMaterial,ParticleSystem:ParticleSystem,ParticleSystemMaterial:ParticleSystemMaterial,Path:Path,PerspectiveCamera:PerspectiveCamera,Plane:Plane$1,PlaneBufferGeometry:PlaneGeometry,PlaneGeometry:PlaneGeometry,PlaneHelper:PlaneHelper,PointCloud:PointCloud,PointCloudMaterial:PointCloudMaterial,PointLight:PointLight$1,PointLightHelper:PointLightHelper,Points:Points,PointsMaterial:PointsMaterial,PolarGridHelper:PolarGridHelper,PolyhedronBufferGeometry:PolyhedronGeometry,PolyhedronGeometry:PolyhedronGeometry,PositionalAudio:PositionalAudio,PropertyBinding:PropertyBinding,PropertyMixer:PropertyMixer,QuadraticBezierCurve:QuadraticBezierCurve,QuadraticBezierCurve3:QuadraticBezierCurve3,Quaternion:Quaternion,QuaternionKeyframeTrack:QuaternionKeyframeTrack,QuaternionLinearInterpolant:QuaternionLinearInterpolant,REVISION:REVISION,RGBADepthPacking:RGBADepthPacking,RGBAFormat:RGBAFormat,RGBAIntegerFormat:RGBAIntegerFormat,RGBA_ASTC_10x10_Format:RGBA_ASTC_10x10_Format,RGBA_ASTC_10x5_Format:RGBA_ASTC_10x5_Format,RGBA_ASTC_10x6_Format:RGBA_ASTC_10x6_Format,RGBA_ASTC_10x8_Format:RGBA_ASTC_10x8_Format,RGBA_ASTC_12x10_Format:RGBA_ASTC_12x10_Format,RGBA_ASTC_12x12_Format:RGBA_ASTC_12x12_Format,RGBA_ASTC_4x4_Format:RGBA_ASTC_4x4_Format,RGBA_ASTC_5x4_Format:RGBA_ASTC_5x4_Format,RGBA_ASTC_5x5_Format:RGBA_ASTC_5x5_Format,RGBA_ASTC_6x5_Format:RGBA_ASTC_6x5_Format,RGBA_ASTC_6x6_Format:RGBA_ASTC_6x6_Format,RGBA_ASTC_8x5_Format:RGBA_ASTC_8x5_Format,RGBA_ASTC_8x6_Format:RGBA_ASTC_8x6_Format,RGBA_ASTC_8x8_Format:RGBA_ASTC_8x8_Format,RGBA_BPTC_Format:RGBA_BPTC_Format,RGBA_ETC2_EAC_Format:RGBA_ETC2_EAC_Format,RGBA_PVRTC_2BPPV1_Format:RGBA_PVRTC_2BPPV1_Format,RGBA_PVRTC_4BPPV1_Format:RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT1_Format:RGBA_S3TC_DXT1_Format,RGBA_S3TC_DXT3_Format:RGBA_S3TC_DXT3_Format,RGBA_S3TC_DXT5_Format:RGBA_S3TC_DXT5_Format,RGBDEncoding:RGBDEncoding,RGBEEncoding:RGBEEncoding,RGBEFormat:RGBEFormat,RGBFormat:RGBFormat,RGBIntegerFormat:RGBIntegerFormat,RGBM16Encoding:RGBM16Encoding,RGBM7Encoding:RGBM7Encoding,RGB_ETC1_Format:RGB_ETC1_Format,RGB_ETC2_Format:RGB_ETC2_Format,RGB_PVRTC_2BPPV1_Format:RGB_PVRTC_2BPPV1_Format,RGB_PVRTC_4BPPV1_Format:RGB_PVRTC_4BPPV1_Format,RGB_S3TC_DXT1_Format:RGB_S3TC_DXT1_Format,RGFormat:RGFormat,RGIntegerFormat:RGIntegerFormat,RawShaderMaterial:RawShaderMaterial,Ray:Ray,Raycaster:Raycaster,RectAreaLight:RectAreaLight,RedFormat:RedFormat,RedIntegerFormat:RedIntegerFormat,ReinhardToneMapping:ReinhardToneMapping,RepeatWrapping:RepeatWrapping$1,ReplaceStencilOp:ReplaceStencilOp,ReverseSubtractEquation:ReverseSubtractEquation,RingBufferGeometry:RingGeometry,RingGeometry:RingGeometry,SRGB8_ALPHA8_ASTC_10x10_Format:SRGB8_ALPHA8_ASTC_10x10_Format,SRGB8_ALPHA8_ASTC_10x5_Format:SRGB8_ALPHA8_ASTC_10x5_Format,SRGB8_ALPHA8_ASTC_10x6_Format:SRGB8_ALPHA8_ASTC_10x6_Format,SRGB8_ALPHA8_ASTC_10x8_Format:SRGB8_ALPHA8_ASTC_10x8_Format,SRGB8_ALPHA8_ASTC_12x10_Format:SRGB8_ALPHA8_ASTC_12x10_Format,SRGB8_ALPHA8_ASTC_12x12_Format:SRGB8_ALPHA8_ASTC_12x12_Format,SRGB8_ALPHA8_ASTC_4x4_Format:SRGB8_ALPHA8_ASTC_4x4_Format,SRGB8_ALPHA8_ASTC_5x4_Format:SRGB8_ALPHA8_ASTC_5x4_Format,SRGB8_ALPHA8_ASTC_5x5_Format:SRGB8_ALPHA8_ASTC_5x5_Format,SRGB8_ALPHA8_ASTC_6x5_Format:SRGB8_ALPHA8_ASTC_6x5_Format,SRGB8_ALPHA8_ASTC_6x6_Format:SRGB8_ALPHA8_ASTC_6x6_Format,SRGB8_ALPHA8_ASTC_8x5_Format:SRGB8_ALPHA8_ASTC_8x5_Format,SRGB8_ALPHA8_ASTC_8x6_Format:SRGB8_ALPHA8_ASTC_8x6_Format,SRGB8_ALPHA8_ASTC_8x8_Format:SRGB8_ALPHA8_ASTC_8x8_Format,Scene:Scene$2,SceneUtils:SceneUtils,ShaderChunk:ShaderChunk,ShaderLib:ShaderLib,ShaderMaterial:ShaderMaterial,ShadowMaterial:ShadowMaterial,Shape:Shape,ShapeBufferGeometry:ShapeGeometry,ShapeGeometry:ShapeGeometry,ShapePath:ShapePath,ShapeUtils:ShapeUtils,ShortType:ShortType,Skeleton:Skeleton,SkeletonHelper:SkeletonHelper,SkinnedMesh:SkinnedMesh,SmoothShading:SmoothShading,Sphere:Sphere$1,SphereBufferGeometry:SphereGeometry,SphereGeometry:SphereGeometry,Spherical:Spherical,SphericalHarmonics3:SphericalHarmonics3,SplineCurve:SplineCurve,SpotLight:SpotLight$1,SpotLightHelper:SpotLightHelper,Sprite:Sprite$1,SpriteMaterial:SpriteMaterial,SrcAlphaFactor:SrcAlphaFactor,SrcAlphaSaturateFactor:SrcAlphaSaturateFactor,SrcColorFactor:SrcColorFactor,StaticCopyUsage:StaticCopyUsage,StaticDrawUsage:StaticDrawUsage,StaticReadUsage:StaticReadUsage,StereoCamera:StereoCamera,StreamCopyUsage:StreamCopyUsage,StreamDrawUsage:StreamDrawUsage,StreamReadUsage:StreamReadUsage,StringKeyframeTrack:StringKeyframeTrack,SubtractEquation:SubtractEquation,SubtractiveBlending:SubtractiveBlending,TOUCH:TOUCH,TangentSpaceNormalMap:TangentSpaceNormalMap,TetrahedronBufferGeometry:TetrahedronGeometry,TetrahedronGeometry:TetrahedronGeometry,TextBufferGeometry:TextGeometry,TextGeometry:TextGeometry,Texture:Texture,TextureLoader:TextureLoader,TorusBufferGeometry:TorusGeometry,TorusGeometry:TorusGeometry,TorusKnotBufferGeometry:TorusKnotGeometry,TorusKnotGeometry:TorusKnotGeometry,Triangle:Triangle,TriangleFanDrawMode:TriangleFanDrawMode,TriangleStripDrawMode:TriangleStripDrawMode,TrianglesDrawMode:TrianglesDrawMode,TubeBufferGeometry:TubeGeometry,TubeGeometry:TubeGeometry,UVMapping:UVMapping,Uint16Attribute:Uint16Attribute,Uint16BufferAttribute:Uint16BufferAttribute,Uint32Attribute:Uint32Attribute,Uint32BufferAttribute:Uint32BufferAttribute,Uint8Attribute:Uint8Attribute,Uint8BufferAttribute:Uint8BufferAttribute,Uint8ClampedAttribute:Uint8ClampedAttribute,Uint8ClampedBufferAttribute:Uint8ClampedBufferAttribute,Uniform:Uniform,UniformsLib:UniformsLib,UniformsUtils:UniformsUtils,UnsignedByteType:UnsignedByteType,UnsignedInt248Type:UnsignedInt248Type,UnsignedIntType:UnsignedIntType,UnsignedShort4444Type:UnsignedShort4444Type,UnsignedShort5551Type:UnsignedShort5551Type,UnsignedShort565Type:UnsignedShort565Type,UnsignedShortType:UnsignedShortType,VSMShadowMap:VSMShadowMap,Vector2:Vector2,Vector3:Vector3$1,Vector4:Vector4,VectorKeyframeTrack:VectorKeyframeTrack,Vertex:Vertex,VertexColors:VertexColors,VideoTexture:VideoTexture,WebGL1Renderer:WebGL1Renderer,WebGLCubeRenderTarget:WebGLCubeRenderTarget,WebGLMultisampleRenderTarget:WebGLMultisampleRenderTarget,WebGLRenderTarget:WebGLRenderTarget,WebGLRenderTargetCube:WebGLRenderTargetCube,WebGLRenderer:WebGLRenderer,WebGLUtils:WebGLUtils,WireframeGeometry:WireframeGeometry,WireframeHelper:WireframeHelper,WrapAroundEnding:WrapAroundEnding,XHRLoader:XHRLoader,ZeroCurvatureEnding:ZeroCurvatureEnding,ZeroFactor:ZeroFactor,ZeroSlopeEnding:ZeroSlopeEnding,ZeroStencilOp:ZeroStencilOp,sRGBEncoding:sRGBEncoding});var PREFIX = "[Mage]";
53922
53922
  var DEPRECATED = "[DEPRECATED]";
53923
53923
  var DEPRECATIONS = {
53924
53924
  PARTICLES_ADD_PARTICLE_EMITTER: "".concat(PREFIX, " ").concat(DEPRECATED, " Particles.addParticleEmitter is deprecated, use Particles.add instead. Will be removed in the next major release"),
@@ -55221,12 +55221,14 @@ var DEFAULT_SELECTOR = "#gameContainer";
55221
55221
  var BEFORE_UNLOAD = "beforeunload";
55222
55222
  var HASH_CHANGE = "hashchange";
55223
55223
  var TAGS = {
55224
+ HELPER: "TAGS.HELPER",
55224
55225
  LIGHTS: {
55225
55226
  HOLDER: "TAGS.LIGHTS.HOLDER",
55226
55227
  HELPER: "TAGS.LIGHTS.HELPER",
55227
55228
  TARGET: "TAGS.LIGHTS.TARGET"
55228
55229
  },
55229
55230
  SOUNDS: {
55231
+ HELPER: "TAGS.SOUNDS.HELPER",
55230
55232
  HOLDER: "TAGS.SOUNDS.HOLDER"
55231
55233
  }
55232
55234
  };var lib_constants=/*#__PURE__*/Object.freeze({__proto__:null,ALMOST_ZERO:ALMOST_ZERO,UP:UP$1,DOWN:DOWN$1,LEFT:LEFT,RIGHT:RIGHT,FRONT:FRONT,BACK:BACK,VECTOR_UP:VECTOR_UP,VECTOR_DOWN:VECTOR_DOWN,VECTOR_LEFT:VECTOR_LEFT,VECTOR_RIGHT:VECTOR_RIGHT,VECTOR_FRONT:VECTOR_FRONT,VECTOR_BACK:VECTOR_BACK,ORIGIN:ORIGIN,ZERO_QUATERNION:ZERO_QUATERNION,MATERIALS:MATERIALS,TEXTURES:TEXTURES,EFFECTS:EFFECTS,COLLISION_EVENT:COLLISION_EVENT,COLORS:COLORS,ASSETS_TYPES:ASSETS_TYPES,OUTPUT_ENCODINGS:OUTPUT_ENCODINGS,DEFAULT_OUTPUT_ENCODING:DEFAULT_OUTPUT_ENCODING,ROOT:ROOT,DIVIDER:DIVIDER,HASH:HASH,EMPTY:EMPTY$2,QUERY_START:QUERY_START,DEFAULT_SELECTOR:DEFAULT_SELECTOR,BEFORE_UNLOAD:BEFORE_UNLOAD,HASH_CHANGE:HASH_CHANGE,TAGS:TAGS});var buildAssetId = function buildAssetId(name, level) {
@@ -57768,7 +57770,7 @@ function applyMiddleware() {
57768
57770
 
57769
57771
  var thunk = createThunkMiddleware();
57770
57772
  thunk.withExtraArgument = createThunkMiddleware;var name$1 = "mage-engine";
57771
- var version$1 = "3.22.6";
57773
+ var version$1 = "3.22.7";
57772
57774
  var description = "A WebGL Javascript Game Engine, built on top of THREE.js and many other libraries.";
57773
57775
  var main = "dist/mage.js";
57774
57776
  var author$1 = {
@@ -82956,7 +82958,7 @@ var MeshLoader = /*#__PURE__*/function (_Loader) {
82956
82958
 
82957
82959
  return MeshLoader;
82958
82960
  }(Loader);
82959
- var MeshLoader$1 = new MeshLoader();var Light = /*#__PURE__*/function (_Entity) {
82961
+ var MeshLoader$1 = new MeshLoader();var Light$1 = /*#__PURE__*/function (_Entity) {
82960
82962
  _inherits(Light, _Entity);
82961
82963
 
82962
82964
  var _super = _createSuper(Light);
@@ -82987,7 +82989,7 @@ var MeshLoader$1 = new MeshLoader();var Light = /*#__PURE__*/function (_Entity)
82987
82989
  holderSprite.setDepthWrite(false);
82988
82990
  holderSprite.setSerializable(false);
82989
82991
  holderSprite.setPosition(_this.getPosition());
82990
- holderSprite.addTags([TAGS.LIGHTS.HELPER, TAGS.LIGHTS.HOLDER, name]);
82992
+ holderSprite.addTags([TAGS.HELPER, TAGS.LIGHTS.HELPER, TAGS.LIGHTS.HOLDER, name]);
82991
82993
  holderSprite.setHelperTarget(_assertThisInitialized(_this));
82992
82994
  _this.holder = holderSprite;
82993
82995
  return true;
@@ -83437,7 +83439,7 @@ var SunLight = /*#__PURE__*/function (_Light) {
83437
83439
  }]);
83438
83440
 
83439
83441
  return SunLight;
83440
- }(Light);var DEFAULT_POSITION$2 = {
83442
+ }(Light$1);var DEFAULT_POSITION$2 = {
83441
83443
  x: 0,
83442
83444
  y: 0,
83443
83445
  z: 0
@@ -83539,7 +83541,7 @@ var AmbientLight = /*#__PURE__*/function (_Light) {
83539
83541
  }]);
83540
83542
 
83541
83543
  return AmbientLight;
83542
- }(Light);var DEFAULT_NEAR$1 = 0.1;
83544
+ }(Light$1);var DEFAULT_NEAR$1 = 0.1;
83543
83545
  var DEFAULT_FAR$1 = 100;
83544
83546
  var DEFAULT_POSITION$1 = {
83545
83547
  x: 0,
@@ -83770,7 +83772,7 @@ var PointLight = /*#__PURE__*/function (_Light) {
83770
83772
  }]);
83771
83773
 
83772
83774
  return PointLight;
83773
- }(Light);var LightLoader = /*#__PURE__*/function (_Loader) {
83775
+ }(Light$1);var LightLoader = /*#__PURE__*/function (_Loader) {
83774
83776
  _inherits(LightLoader, _Loader);
83775
83777
 
83776
83778
  var _super = _createSuper(LightLoader);
@@ -91126,6 +91128,7 @@ var Sound$1 = /*#__PURE__*/function (_Entity) {
91126
91128
 
91127
91129
  _this.setEntityType(ENTITY_TYPES.AUDIO.DEFAULT);
91128
91130
 
91131
+ Scene$1.add(_this.getBody(), _assertThisInitialized(_this));
91129
91132
  Audio$1.add(_assertThisInitialized(_this));
91130
91133
 
91131
91134
  if (_this.isSetupCompleted()) {
@@ -91154,7 +91157,7 @@ var Sound$1 = /*#__PURE__*/function (_Entity) {
91154
91157
  holderSprite.setDepthWrite(false);
91155
91158
  holderSprite.setSerializable(false);
91156
91159
  holderSprite.setPosition(this.getPosition());
91157
- holderSprite.addTags([TAGS.LIGHTS.HELPER, TAGS.LIGHTS.HOLDER, name]);
91160
+ holderSprite.addTags([TAGS.HELPER, TAGS.SOUNDS.HELPER, TAGS.SOUNDS.HOLDER, name]);
91158
91161
  holderSprite.setHelperTarget(this);
91159
91162
  this.holder = holderSprite;
91160
91163
  return true;
@@ -91402,6 +91405,16 @@ var Sound$1 = /*#__PURE__*/function (_Entity) {
91402
91405
  });
91403
91406
  }
91404
91407
  }
91408
+ }, {
91409
+ key: "usingHelper",
91410
+ value: function usingHelper() {
91411
+ return !!this.isUsingHelper;
91412
+ }
91413
+ }, {
91414
+ key: "hasHolder",
91415
+ value: function hasHolder() {
91416
+ return !!this.holder;
91417
+ }
91405
91418
  }, {
91406
91419
  key: "toJSON",
91407
91420
  value: function toJSON() {
@@ -91416,9 +91429,9 @@ var Sound$1 = /*#__PURE__*/function (_Entity) {
91416
91429
  hasPlayed: this.hasPlayed,
91417
91430
  playing: this.isPlaying(),
91418
91431
  connected: this.isConnected(),
91419
- duration: this.duration,
91420
- sampleRate: this.sampleRate,
91421
- numberOfChannels: this.numberOfChannels
91432
+ duration: this.hasBuffer() ? this.duration : 0,
91433
+ sampleRate: this.hasBuffer() ? this.sampleRate : 0,
91434
+ numberOfChannels: this.hasBuffer() ? this.numberOfChannels : 0
91422
91435
  });
91423
91436
  }
91424
91437
  }, {
@@ -91671,6 +91684,7 @@ var Sound = /*#__PURE__*/function (_Entity) {
91671
91684
 
91672
91685
  _this.setEntityType(ENTITY_TYPES.AUDIO.DEFAULT);
91673
91686
 
91687
+ Scene$1.add(_this.getBody(), _assertThisInitialized(_this));
91674
91688
  Audio$1.add(_assertThisInitialized(_this));
91675
91689
 
91676
91690
  if (_this.isSetupCompleted()) {
@@ -91699,7 +91713,7 @@ var Sound = /*#__PURE__*/function (_Entity) {
91699
91713
  holderSprite.setDepthWrite(false);
91700
91714
  holderSprite.setSerializable(false);
91701
91715
  holderSprite.setPosition(this.getPosition());
91702
- holderSprite.addTags([TAGS.LIGHTS.HELPER, TAGS.LIGHTS.HOLDER, name]);
91716
+ holderSprite.addTags([TAGS.HELPER, TAGS.SOUNDS.HELPER, TAGS.SOUNDS.HOLDER, name]);
91703
91717
  holderSprite.setHelperTarget(this);
91704
91718
  this.holder = holderSprite;
91705
91719
  return true;
@@ -91947,6 +91961,16 @@ var Sound = /*#__PURE__*/function (_Entity) {
91947
91961
  });
91948
91962
  }
91949
91963
  }
91964
+ }, {
91965
+ key: "usingHelper",
91966
+ value: function usingHelper() {
91967
+ return !!this.isUsingHelper;
91968
+ }
91969
+ }, {
91970
+ key: "hasHolder",
91971
+ value: function hasHolder() {
91972
+ return !!this.holder;
91973
+ }
91950
91974
  }, {
91951
91975
  key: "toJSON",
91952
91976
  value: function toJSON() {
@@ -91961,9 +91985,9 @@ var Sound = /*#__PURE__*/function (_Entity) {
91961
91985
  hasPlayed: this.hasPlayed,
91962
91986
  playing: this.isPlaying(),
91963
91987
  connected: this.isConnected(),
91964
- duration: this.duration,
91965
- sampleRate: this.sampleRate,
91966
- numberOfChannels: this.numberOfChannels
91988
+ duration: this.hasBuffer() ? this.duration : 0,
91989
+ sampleRate: this.hasBuffer() ? this.sampleRate : 0,
91990
+ numberOfChannels: this.hasBuffer() ? this.numberOfChannels : 0
91967
91991
  });
91968
91992
  }
91969
91993
  }, {
@@ -92389,7 +92413,250 @@ var SpotLight = /*#__PURE__*/function (_Light) {
92389
92413
  }]);
92390
92414
 
92391
92415
  return SpotLight;
92392
- }(Light);var DEFAULT_INTENSITY = 0.5;
92416
+ }(Light$1);var Light = /*#__PURE__*/function (_Entity) {
92417
+ _inherits(Light, _Entity);
92418
+
92419
+ var _super = _createSuper(Light);
92420
+
92421
+ function Light(_ref) {
92422
+ var _this;
92423
+
92424
+ var color = _ref.color,
92425
+ intensity = _ref.intensity,
92426
+ _name = _ref.name;
92427
+
92428
+ _classCallCheck(this, Light);
92429
+
92430
+ _this = _super.call(this, {
92431
+ name: _name
92432
+ });
92433
+
92434
+ _defineProperty$1(_assertThisInitialized(_this), "addHolder", function () {
92435
+ var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "lightholder";
92436
+ var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.05;
92437
+ var holderSprite = new HelperSprite(size, size, name, {
92438
+ name: name
92439
+ });
92440
+
92441
+ if (holderSprite) {
92442
+ holderSprite.setSizeAttenuation(false);
92443
+ holderSprite.setDepthTest(false);
92444
+ holderSprite.setDepthWrite(false);
92445
+ holderSprite.setSerializable(false);
92446
+ holderSprite.setPosition(_this.getPosition());
92447
+ holderSprite.addTags([TAGS.HELPER, TAGS.LIGHTS.HELPER, TAGS.LIGHTS.HOLDER, name]);
92448
+ holderSprite.setHelperTarget(_assertThisInitialized(_this));
92449
+ _this.holder = holderSprite;
92450
+ return true;
92451
+ } else {
92452
+ console.warn(LIGHT_HOLDER_MODEL_NOT_FOUND$1);
92453
+ return false;
92454
+ }
92455
+ });
92456
+
92457
+ _defineProperty$1(_assertThisInitialized(_this), "addTargetHolder", function () {
92458
+ var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "targetholder";
92459
+ var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.05;
92460
+ var targetSprite = new HelperSprite(size, size, name, {
92461
+ name: name
92462
+ });
92463
+
92464
+ if (targetSprite) {
92465
+ targetSprite.setSizeAttenuation(false);
92466
+ targetSprite.setDepthTest(false);
92467
+ targetSprite.setDepthWrite(false);
92468
+ targetSprite.setSerializable(false);
92469
+ targetSprite.setPosition(_this.getTarget().getPosition());
92470
+ targetSprite.addTags([TAGS.LIGHTS.HELPER, TAGS.LIGHTS.TARGET, name]);
92471
+ targetSprite.setHelperTarget(_assertThisInitialized(_this));
92472
+ targetSprite.getBody().add(_this.getBody().target);
92473
+ _this.targetHolder = targetSprite;
92474
+ }
92475
+ });
92476
+
92477
+ _this.color = color;
92478
+ _this.intensity = intensity;
92479
+ _this.name = _name || generateRandomName("Light");
92480
+ _this.isLightOn = false;
92481
+ _this.body = undefined; // helper body for this light
92482
+
92483
+ _this.isUsingHelper = undefined; // holder body representing the light
92484
+
92485
+ _this.holder = undefined; // target body for the light (only used by directional light)
92486
+
92487
+ _this.target = undefined;
92488
+
92489
+ _this.setEntityType(ENTITY_TYPES.LIGHT.DEFAULT);
92490
+
92491
+ Lights$1.add(_assertThisInitialized(_this));
92492
+ return _this;
92493
+ }
92494
+
92495
+ _createClass(Light, [{
92496
+ key: "addToScene",
92497
+ value: function addToScene() {
92498
+ if (this.hasBody()) {
92499
+ Scene$1.add(this.body, this);
92500
+ }
92501
+ }
92502
+ }, {
92503
+ key: "usingHelper",
92504
+ value: function usingHelper() {
92505
+ return !!this.isUsingHelper;
92506
+ }
92507
+ }, {
92508
+ key: "hasHolder",
92509
+ value: function hasHolder() {
92510
+ return !!this.holder;
92511
+ }
92512
+ }, {
92513
+ key: "hasTarget",
92514
+ value: function hasTarget() {
92515
+ return false;
92516
+ }
92517
+ }, {
92518
+ key: "getPosition",
92519
+ value: function getPosition() {
92520
+ return {
92521
+ x: this.body.position.x,
92522
+ y: this.body.position.y,
92523
+ z: this.body.position.z
92524
+ };
92525
+ }
92526
+ }, {
92527
+ key: "setPosition",
92528
+ value: function setPosition(where) {
92529
+ var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
92530
+ _ref2$updateHolder = _ref2.updateHolder,
92531
+ updateHolder = _ref2$updateHolder === void 0 ? true : _ref2$updateHolder;
92532
+
92533
+ var position = _objectSpread2$1(_objectSpread2$1({}, this.getPosition()), where);
92534
+
92535
+ var x = position.x,
92536
+ y = position.y,
92537
+ z = position.z;
92538
+
92539
+ if (this.hasBody()) {
92540
+ this.body.position.set(x, y, z);
92541
+ }
92542
+
92543
+ if (this.hasHolder() && updateHolder) {
92544
+ this.holder.setPosition({
92545
+ x: x,
92546
+ y: y,
92547
+ z: z
92548
+ });
92549
+ }
92550
+ }
92551
+ }, {
92552
+ key: "isAlreadyOn",
92553
+ value: function isAlreadyOn() {
92554
+ return this.hasBody() && this.body.intensity === this.intensity;
92555
+ }
92556
+ }, {
92557
+ key: "isAlreadyOff",
92558
+ value: function isAlreadyOff() {
92559
+ return this.hasBody() && this.body.intensity <= 0;
92560
+ }
92561
+ }, {
92562
+ key: "setIntensity",
92563
+ value: function setIntensity(value) {
92564
+ if (this.hasBody()) {
92565
+ this.body.intensity = value;
92566
+ this.intensity = value;
92567
+ }
92568
+ }
92569
+ }, {
92570
+ key: "getIntensity",
92571
+ value: function getIntensity() {
92572
+ if (this.hasBody()) {
92573
+ return this.body.intensity;
92574
+ }
92575
+ }
92576
+ }, {
92577
+ key: "setColor",
92578
+ value: function setColor(color) {
92579
+ this.body.color = color;
92580
+ }
92581
+ }, {
92582
+ key: "getColor",
92583
+ value: function getColor() {
92584
+ return this.body.color;
92585
+ }
92586
+ }, {
92587
+ key: "setCastShadow",
92588
+ value: function setCastShadow(castShadow) {
92589
+ this.castShadow = castShadow;
92590
+ this.getBody().castShadow = castShadow;
92591
+ }
92592
+ }, {
92593
+ key: "getCastShadow",
92594
+ value: function getCastShadow() {
92595
+ return this.castShadow;
92596
+ }
92597
+ }, {
92598
+ key: "dim",
92599
+ value: function dim() {
92600
+ var _this2 = this;
92601
+
92602
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.getIntensity();
92603
+ var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 250;
92604
+ var intensity = this.getIntensity();
92605
+
92606
+ var onUpdate = function onUpdate(value) {
92607
+ return !_this2.isDisposed() && _this2.setIntensity(value);
92608
+ };
92609
+
92610
+ return tweenTo(intensity, value, {
92611
+ time: time,
92612
+ onUpdate: onUpdate
92613
+ });
92614
+ }
92615
+ }, {
92616
+ key: "on",
92617
+ value: function on() {
92618
+ var _this3 = this;
92619
+
92620
+ var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 500;
92621
+
92622
+ if (this.hasBody()) {
92623
+ this.dim(this.intensity, time).then(function () {
92624
+ return _this3.isLightOn = true;
92625
+ });
92626
+ } else {
92627
+ console.log(LIGHT_NOT_FOUND);
92628
+ }
92629
+ }
92630
+ }, {
92631
+ key: "off",
92632
+ value: function off() {
92633
+ var _this4 = this;
92634
+
92635
+ var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 500;
92636
+
92637
+ if (this.hasBody()) {
92638
+ this.dim(0, time).then(function () {
92639
+ return _this4.isLightOn = false;
92640
+ });
92641
+ } else {
92642
+ console.log(LIGHT_NOT_FOUND);
92643
+ }
92644
+ }
92645
+ }, {
92646
+ key: "toJSON",
92647
+ value: function toJSON() {
92648
+ return _objectSpread2$1(_objectSpread2$1({}, _get(_getPrototypeOf(Light.prototype), "toJSON", this).call(this)), {}, {
92649
+ type: this.getEntityType(),
92650
+ color: this.getColor(),
92651
+ intensity: this.getIntensity(),
92652
+ name: this.getName(),
92653
+ castShadow: this.getCastShadow()
92654
+ });
92655
+ }
92656
+ }]);
92657
+
92658
+ return Light;
92659
+ }(Entity);var DEFAULT_INTENSITY = 0.5;
92393
92660
  var DEFAULT_SKY_COLOR = 0xffffff;
92394
92661
  var DEFAULT_GROUND_COLOR = 0x555555;
92395
92662
  var GREEN = 0x2ecc71;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mage-engine",
3
- "version": "3.22.6",
3
+ "version": "3.22.7",
4
4
  "description": "A WebGL Javascript Game Engine, built on top of THREE.js and many other libraries.",
5
5
  "main": "dist/mage.js",
6
6
  "author": {