mage-engine 3.22.0 → 3.22.1
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/dist/mage.js +468 -351
- package/package.json +1 -1
package/dist/mage.js
CHANGED
|
@@ -53918,13 +53918,17 @@ 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]';
|
|
53922
|
-
var DEPRECATED =
|
|
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]";
|
|
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"),
|
|
53925
53925
|
MODELS_GETMODEL: "".concat(PREFIX, " ").concat(DEPRECATED, " Models.getModel is deprecated, use Models.get instead. Will be removed in next major release"),
|
|
53926
53926
|
SCRIPTS_CREATE: "".concat(PREFIX, " ").concat(DEPRECATED, " Scripts.create is deprecated, use Scripts.register instead. Will be removed in next major release."),
|
|
53927
|
-
ELEMENT_SET_TEXTURE_MAP: "".concat(PREFIX, " ").concat(DEPRECATED, " Element.setTextureMap is deprecated, use Element.setTexture() instead. Will be removed in next major release.")
|
|
53927
|
+
ELEMENT_SET_TEXTURE_MAP: "".concat(PREFIX, " ").concat(DEPRECATED, " Element.setTextureMap is deprecated, use Element.setTexture() instead. Will be removed in next major release."),
|
|
53928
|
+
SET_ORBIT_CONTROL: "".concat(PREFIX, " ").concat(DEPRECATED, " Controls.setOrbitControl() is deprecated, use Controls.setOrbitControls() instead. Will be removed in next major release."),
|
|
53929
|
+
SET_TRANSFORM_CONTROL: "".concat(PREFIX, " ").concat(DEPRECATED, " Controls.setTransformControl() is deprecated, use Controls.setTransformControls() instead. Will be removed in next major release."),
|
|
53930
|
+
SET_FIRST_PERSON_CONTROL: "".concat(PREFIX, " ").concat(DEPRECATED, " Controls.setFirstPersonControl() is deprecated, use Controls.setFirstPersonControls() instead. Will be removed in next major release."),
|
|
53931
|
+
SET_FLY_CONTROL: "".concat(PREFIX, " ").concat(DEPRECATED, " Controls.setFlyControl() is deprecated, use Controls.setFlyControls() instead. Will be removed in next major release.")
|
|
53928
53932
|
};
|
|
53929
53933
|
var ONCREATE_NOT_AVAILABLE = "".concat(PREFIX, " Your scene needs a onCreate method.");
|
|
53930
53934
|
var PATH_NOT_FOUND = "".concat(PREFIX, " can't find requested path");
|
|
@@ -54715,7 +54719,52 @@ var Keyboard = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
54715
54719
|
}]);
|
|
54716
54720
|
|
|
54717
54721
|
return Keyboard;
|
|
54718
|
-
}(EventDispatcher);var
|
|
54722
|
+
}(EventDispatcher);var ENTITY_TYPES = {
|
|
54723
|
+
SCENE: 'SCENE',
|
|
54724
|
+
CAMERA: 'CAMERA',
|
|
54725
|
+
MESH: 'MESH',
|
|
54726
|
+
LABEL: 'LABEL',
|
|
54727
|
+
LIGHT: {
|
|
54728
|
+
DEFAULT: 'LIGHT.DEFAULT',
|
|
54729
|
+
AMBIENT: 'LIGHT.AMBIENT',
|
|
54730
|
+
SUN: 'LIGHT.SUN',
|
|
54731
|
+
HEMISPHERE: 'LIGHT.HEMISPHERE',
|
|
54732
|
+
POINT: 'LIGHT.POINT',
|
|
54733
|
+
SPOT: 'LIGHT.SPOT'
|
|
54734
|
+
},
|
|
54735
|
+
AUDIO: {
|
|
54736
|
+
DEFAULT: 'AUDIO.DEFAULT',
|
|
54737
|
+
DIRECTIONAL: 'AUDIO.DIRECTIONAL',
|
|
54738
|
+
AMBIENT: 'AUDIO.AMBIENT'
|
|
54739
|
+
},
|
|
54740
|
+
MODEL: 'MODEL',
|
|
54741
|
+
SPRITE: 'SPRITE',
|
|
54742
|
+
PARTICLE: 'PARTICLE',
|
|
54743
|
+
EFFECT: {
|
|
54744
|
+
PARTICLE: 'EFFECT.PARTICLE',
|
|
54745
|
+
SCENERY: 'EFFECT.SCENERY'
|
|
54746
|
+
},
|
|
54747
|
+
HELPER: {
|
|
54748
|
+
GRID: 'HELPER.GRID',
|
|
54749
|
+
AXES: 'HELPER.AXES'
|
|
54750
|
+
},
|
|
54751
|
+
UNKNOWN: 'UNKNOWN'
|
|
54752
|
+
};
|
|
54753
|
+
var FLAT_ENTITY_TYPES = [ENTITY_TYPES.SCENE, ENTITY_TYPES.CAMERA, ENTITY_TYPES.MESH, ENTITY_TYPES.LABEL, ENTITY_TYPES.LIGHT.DEFAULT, ENTITY_TYPES.LIGHT.AMBIENT, ENTITY_TYPES.LIGHT.SUN, ENTITY_TYPES.LIGHT.HEMISPHERE, ENTITY_TYPES.LIGHT.POINT, ENTITY_TYPES.LIGHT.SPOT, ENTITY_TYPES.AUDIO.DEFAULT, ENTITY_TYPES.AUDIO.AMBIENT, ENTITY_TYPES.AUDIO.DIRECTIONAL, ENTITY_TYPES.AUDIO.BACKGROUND, ENTITY_TYPES.MODEL, ENTITY_TYPES.SPRITE, ENTITY_TYPES.PARTICLE, ENTITY_TYPES.EFFECT.PARTICLE, ENTITY_TYPES.EFFECT.SCENERY, ENTITY_TYPES.HELPER.GRID, ENTITY_TYPES.HELPER.AXES, ENTITY_TYPES.UNKNOWN];
|
|
54754
|
+
var ENTITY_EVENTS = {
|
|
54755
|
+
DISPOSE: 'DISPOSE',
|
|
54756
|
+
STATE_MACHINE: {
|
|
54757
|
+
CHANGE: 'STATE_MACHINE_CHANGE'
|
|
54758
|
+
},
|
|
54759
|
+
ANIMATION: {
|
|
54760
|
+
LOOP: 'LOOP',
|
|
54761
|
+
FINISHED: 'FINISHED'
|
|
54762
|
+
},
|
|
54763
|
+
AUDIO: {
|
|
54764
|
+
ENDED: 'ended'
|
|
54765
|
+
}
|
|
54766
|
+
};
|
|
54767
|
+
var DEFAULT_TAG = 'all';var SHADOW_TYPES = {
|
|
54719
54768
|
BASIC: 'BASIC',
|
|
54720
54769
|
SOFT: 'SOFT',
|
|
54721
54770
|
HARD: 'HARD'
|
|
@@ -55067,12 +55116,12 @@ var Universe$1 = new Universe();var generateUUID = function generateUUID() {
|
|
|
55067
55116
|
var generateRandomName = function generateRandomName(prefix) {
|
|
55068
55117
|
return "".concat(prefix, "_").concat(generateUUID());
|
|
55069
55118
|
};var uuid$1=/*#__PURE__*/Object.freeze({__proto__:null,generateUUID:generateUUID,generateRandomName:generateRandomName});var ALMOST_ZERO = 0.00001;
|
|
55070
|
-
var UP$1 =
|
|
55071
|
-
var DOWN$1 =
|
|
55072
|
-
var LEFT =
|
|
55073
|
-
var RIGHT =
|
|
55074
|
-
var FRONT =
|
|
55075
|
-
var BACK =
|
|
55119
|
+
var UP$1 = "UP";
|
|
55120
|
+
var DOWN$1 = "DOWN";
|
|
55121
|
+
var LEFT = "LEFT";
|
|
55122
|
+
var RIGHT = "RIGHT";
|
|
55123
|
+
var FRONT = "FRONT";
|
|
55124
|
+
var BACK = "BACK";
|
|
55076
55125
|
var VECTOR_UP = {
|
|
55077
55126
|
type: UP$1,
|
|
55078
55127
|
vector: new Vector3$1(0, 1, 0)
|
|
@@ -55100,54 +55149,54 @@ var VECTOR_BACK = {
|
|
|
55100
55149
|
var ORIGIN = new Vector3$1(0, 0, 0);
|
|
55101
55150
|
var ZERO_QUATERNION = new Quaternion().identity();
|
|
55102
55151
|
var MATERIALS = {
|
|
55103
|
-
BASIC:
|
|
55104
|
-
LAMBERT:
|
|
55105
|
-
PHONG:
|
|
55106
|
-
DEPTH:
|
|
55107
|
-
STANDARD:
|
|
55108
|
-
TOON:
|
|
55109
|
-
THREE_TOON:
|
|
55152
|
+
BASIC: "BASIC",
|
|
55153
|
+
LAMBERT: "LAMBERT",
|
|
55154
|
+
PHONG: "PHONG",
|
|
55155
|
+
DEPTH: "DEPTH",
|
|
55156
|
+
STANDARD: "STANDARD",
|
|
55157
|
+
TOON: "TOOM",
|
|
55158
|
+
THREE_TOON: "THREE_TOON"
|
|
55110
55159
|
};
|
|
55111
55160
|
var TEXTURES = {
|
|
55112
|
-
ALPHA:
|
|
55113
|
-
AO:
|
|
55114
|
-
ENV:
|
|
55115
|
-
MAP:
|
|
55116
|
-
LIGHT:
|
|
55117
|
-
SPECULAR:
|
|
55118
|
-
EMISSIVE:
|
|
55119
|
-
BUMP:
|
|
55120
|
-
DISPLACEMENT:
|
|
55121
|
-
NORMAL:
|
|
55122
|
-
METALNESS:
|
|
55123
|
-
ROUGHNESS:
|
|
55124
|
-
GRADIENT:
|
|
55161
|
+
ALPHA: "alphaMap",
|
|
55162
|
+
AO: "aoMap",
|
|
55163
|
+
ENV: "envMap",
|
|
55164
|
+
MAP: "map",
|
|
55165
|
+
LIGHT: "lightMap",
|
|
55166
|
+
SPECULAR: "specularMap",
|
|
55167
|
+
EMISSIVE: "emissiveMap",
|
|
55168
|
+
BUMP: "bumpMap",
|
|
55169
|
+
DISPLACEMENT: "displacementMap",
|
|
55170
|
+
NORMAL: "normalMap",
|
|
55171
|
+
METALNESS: "metalnessMap",
|
|
55172
|
+
ROUGHNESS: "roughnessMap",
|
|
55173
|
+
GRADIENT: "gradientMap"
|
|
55125
55174
|
};
|
|
55126
55175
|
var EFFECTS = {
|
|
55127
|
-
SEPIA:
|
|
55128
|
-
HUE_SATURATION:
|
|
55129
|
-
BLOOM:
|
|
55130
|
-
DEPTH_OF_FIELD:
|
|
55131
|
-
SELECTIVE_OUTLINE:
|
|
55132
|
-
OUTLINE:
|
|
55133
|
-
GLITCH:
|
|
55134
|
-
PIXEL:
|
|
55176
|
+
SEPIA: "SEPIAEFFECT",
|
|
55177
|
+
HUE_SATURATION: "HUESATURATIONEFFECT",
|
|
55178
|
+
BLOOM: "BLOOM",
|
|
55179
|
+
DEPTH_OF_FIELD: "DOF",
|
|
55180
|
+
SELECTIVE_OUTLINE: "SELECTIVEOUTLINE",
|
|
55181
|
+
OUTLINE: "OUTLINE",
|
|
55182
|
+
GLITCH: "GLITCH",
|
|
55183
|
+
PIXEL: "PIXEL"
|
|
55135
55184
|
};
|
|
55136
|
-
var COLLISION_EVENT =
|
|
55185
|
+
var COLLISION_EVENT = "COLLISION_EVENT";
|
|
55137
55186
|
var COLORS = {
|
|
55138
|
-
WHITE:
|
|
55139
|
-
BLACK:
|
|
55187
|
+
WHITE: "#ffffff",
|
|
55188
|
+
BLACK: "#000000"
|
|
55140
55189
|
};
|
|
55141
55190
|
var ASSETS_TYPES = {
|
|
55142
|
-
AUDIO:
|
|
55143
|
-
VIDEO:
|
|
55144
|
-
IMAGES:
|
|
55145
|
-
TEXTURES:
|
|
55146
|
-
CUBETEXTURES:
|
|
55147
|
-
MODELS:
|
|
55148
|
-
PARTICLES:
|
|
55149
|
-
SCRIPTS:
|
|
55150
|
-
SHADERS:
|
|
55191
|
+
AUDIO: "audio",
|
|
55192
|
+
VIDEO: "video",
|
|
55193
|
+
IMAGES: "images",
|
|
55194
|
+
TEXTURES: "textures",
|
|
55195
|
+
CUBETEXTURES: "cubetextures",
|
|
55196
|
+
MODELS: "models",
|
|
55197
|
+
PARTICLES: "particles",
|
|
55198
|
+
SCRIPTS: "scripts",
|
|
55199
|
+
SHADERS: "shaders"
|
|
55151
55200
|
};
|
|
55152
55201
|
var OUTPUT_ENCODINGS = {
|
|
55153
55202
|
LINEAR: LinearEncoding,
|
|
@@ -55161,14 +55210,21 @@ var OUTPUT_ENCODINGS = {
|
|
|
55161
55210
|
RGBADEPTH: RGBADepthPacking
|
|
55162
55211
|
};
|
|
55163
55212
|
var DEFAULT_OUTPUT_ENCODING = OUTPUT_ENCODINGS.LINEAR;
|
|
55164
|
-
var ROOT =
|
|
55165
|
-
var DIVIDER =
|
|
55166
|
-
var HASH =
|
|
55167
|
-
var EMPTY$2 =
|
|
55168
|
-
var QUERY_START =
|
|
55169
|
-
var DEFAULT_SELECTOR =
|
|
55170
|
-
var BEFORE_UNLOAD =
|
|
55171
|
-
var HASH_CHANGE =
|
|
55213
|
+
var ROOT = "/";
|
|
55214
|
+
var DIVIDER = "/";
|
|
55215
|
+
var HASH = "#";
|
|
55216
|
+
var EMPTY$2 = "";
|
|
55217
|
+
var QUERY_START = "?";
|
|
55218
|
+
var DEFAULT_SELECTOR = "#gameContainer";
|
|
55219
|
+
var BEFORE_UNLOAD = "beforeunload";
|
|
55220
|
+
var HASH_CHANGE = "hashchange";
|
|
55221
|
+
var TAGS = {
|
|
55222
|
+
LIGHTS: {
|
|
55223
|
+
HOLDER: "TAGS.LIGHTS.HOLDER",
|
|
55224
|
+
HELPER: "TAGS.LIGHTS.HELPER",
|
|
55225
|
+
TARGET: "TAGS.LIGHTS.TARGET"
|
|
55226
|
+
}
|
|
55227
|
+
};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) {
|
|
55172
55228
|
return level ? "".concat(level, "_").concat(name) : name;
|
|
55173
55229
|
};
|
|
55174
55230
|
var isLevelName = function isLevelName(level) {
|
|
@@ -56225,52 +56281,7 @@ var Physics = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
56225
56281
|
|
|
56226
56282
|
return Physics;
|
|
56227
56283
|
}(EventDispatcher);
|
|
56228
|
-
var Physics$1 = new Physics();var
|
|
56229
|
-
SCENE: 'SCENE',
|
|
56230
|
-
CAMERA: 'CAMERA',
|
|
56231
|
-
MESH: 'MESH',
|
|
56232
|
-
LABEL: 'LABEL',
|
|
56233
|
-
LIGHT: {
|
|
56234
|
-
DEFAULT: 'LIGHT.DEFAULT',
|
|
56235
|
-
AMBIENT: 'LIGHT.AMBIENT',
|
|
56236
|
-
SUN: 'LIGHT.SUN',
|
|
56237
|
-
HEMISPHERE: 'LIGHT.HEMISPHERE',
|
|
56238
|
-
POINT: 'LIGHT.POINT',
|
|
56239
|
-
SPOT: 'LIGHT.SPOT'
|
|
56240
|
-
},
|
|
56241
|
-
AUDIO: {
|
|
56242
|
-
DEFAULT: 'AUDIO.DEFAULT',
|
|
56243
|
-
DIRECTIONAL: 'AUDIO.DIRECTIONAL',
|
|
56244
|
-
AMBIENT: 'AUDIO.AMBIENT'
|
|
56245
|
-
},
|
|
56246
|
-
MODEL: 'MODEL',
|
|
56247
|
-
SPRITE: 'SPRITE',
|
|
56248
|
-
PARTICLE: 'PARTICLE',
|
|
56249
|
-
EFFECT: {
|
|
56250
|
-
PARTICLE: 'EFFECT.PARTICLE',
|
|
56251
|
-
SCENERY: 'EFFECT.SCENERY'
|
|
56252
|
-
},
|
|
56253
|
-
HELPER: {
|
|
56254
|
-
GRID: 'HELPER.GRID',
|
|
56255
|
-
AXES: 'HELPER.AXES'
|
|
56256
|
-
},
|
|
56257
|
-
UNKNOWN: 'UNKNOWN'
|
|
56258
|
-
};
|
|
56259
|
-
var FLAT_ENTITY_TYPES = [ENTITY_TYPES.SCENE, ENTITY_TYPES.CAMERA, ENTITY_TYPES.MESH, ENTITY_TYPES.LABEL, ENTITY_TYPES.LIGHT.DEFAULT, ENTITY_TYPES.LIGHT.AMBIENT, ENTITY_TYPES.LIGHT.SUN, ENTITY_TYPES.LIGHT.HEMISPHERE, ENTITY_TYPES.LIGHT.POINT, ENTITY_TYPES.LIGHT.SPOT, ENTITY_TYPES.AUDIO.DEFAULT, ENTITY_TYPES.AUDIO.AMBIENT, ENTITY_TYPES.AUDIO.DIRECTIONAL, ENTITY_TYPES.AUDIO.BACKGROUND, ENTITY_TYPES.MODEL, ENTITY_TYPES.SPRITE, ENTITY_TYPES.PARTICLE, ENTITY_TYPES.EFFECT.PARTICLE, ENTITY_TYPES.EFFECT.SCENERY, ENTITY_TYPES.HELPER.GRID, ENTITY_TYPES.HELPER.AXES, ENTITY_TYPES.UNKNOWN];
|
|
56260
|
-
var ENTITY_EVENTS = {
|
|
56261
|
-
DISPOSE: 'DISPOSE',
|
|
56262
|
-
STATE_MACHINE: {
|
|
56263
|
-
CHANGE: 'STATE_MACHINE_CHANGE'
|
|
56264
|
-
},
|
|
56265
|
-
ANIMATION: {
|
|
56266
|
-
LOOP: 'LOOP',
|
|
56267
|
-
FINISHED: 'FINISHED'
|
|
56268
|
-
},
|
|
56269
|
-
AUDIO: {
|
|
56270
|
-
ENDED: 'ended'
|
|
56271
|
-
}
|
|
56272
|
-
};
|
|
56273
|
-
var DEFAULT_TAG = 'all';var Scene = /*#__PURE__*/function () {
|
|
56284
|
+
var Physics$1 = new Physics();var Scene = /*#__PURE__*/function () {
|
|
56274
56285
|
function Scene() {
|
|
56275
56286
|
var _this = this;
|
|
56276
56287
|
|
|
@@ -56611,11 +56622,11 @@ var DEFAULT_TAG = 'all';var Scene = /*#__PURE__*/function () {
|
|
|
56611
56622
|
|
|
56612
56623
|
return Scene;
|
|
56613
56624
|
}();
|
|
56614
|
-
var Scene$1 = new Scene();var MOUSE_DOWN =
|
|
56615
|
-
var MOUSE_UP =
|
|
56616
|
-
var MOUSE_MOVE =
|
|
56617
|
-
var ELEMENT_CLICK =
|
|
56618
|
-
var ELEMENT_DESELECT =
|
|
56625
|
+
var Scene$1 = new Scene();var MOUSE_DOWN = "mouseDown";
|
|
56626
|
+
var MOUSE_UP = "mouseUp";
|
|
56627
|
+
var MOUSE_MOVE = "mouseMove";
|
|
56628
|
+
var ELEMENT_CLICK = "elementClick";
|
|
56629
|
+
var ELEMENT_DESELECT = "elementDeselect";
|
|
56619
56630
|
|
|
56620
56631
|
var Mouse = /*#__PURE__*/function (_EventDispatcher) {
|
|
56621
56632
|
_inherits(Mouse, _EventDispatcher);
|
|
@@ -56684,7 +56695,7 @@ var Mouse = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
56684
56695
|
|
|
56685
56696
|
_defineProperty$1(_assertThisInitialized(_this), "getIntersections", function () {
|
|
56686
56697
|
var recursive = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
56687
|
-
var tag = arguments.length > 1 ? arguments[1] :
|
|
56698
|
+
var tag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_TAG;
|
|
56688
56699
|
|
|
56689
56700
|
if (_this.hasRaycaster()) {
|
|
56690
56701
|
_this.raycaster.setFromCamera(_this.mouse, Scene$1.getCameraBody());
|
|
@@ -56696,6 +56707,7 @@ var Mouse = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
56696
56707
|
|
|
56697
56708
|
_defineProperty$1(_assertThisInitialized(_this), "onMouseDown", function (event) {
|
|
56698
56709
|
if (!_this.enabled) return;
|
|
56710
|
+
console.log("on mouse down");
|
|
56699
56711
|
event.preventDefault();
|
|
56700
56712
|
|
|
56701
56713
|
var mouseEvent = _this.parseMouseEvent(event);
|
|
@@ -56707,6 +56719,7 @@ var Mouse = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
56707
56719
|
|
|
56708
56720
|
var elements = _this.getIntersections();
|
|
56709
56721
|
|
|
56722
|
+
console.log("clicked elements", elements);
|
|
56710
56723
|
_this.elementClickEvent.elements = elements;
|
|
56711
56724
|
|
|
56712
56725
|
if (!elements.length) {
|
|
@@ -56755,9 +56768,9 @@ var Mouse = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
56755
56768
|
value: function enable() {
|
|
56756
56769
|
this.enabled = true;
|
|
56757
56770
|
this.createRayCaster();
|
|
56758
|
-
Scene$1.getDOMElement().addEventListener(
|
|
56759
|
-
Scene$1.getDOMElement().addEventListener(
|
|
56760
|
-
document.addEventListener(
|
|
56771
|
+
Scene$1.getDOMElement().addEventListener("mousemove", this.onMouseMove);
|
|
56772
|
+
Scene$1.getDOMElement().addEventListener("mousedown", this.onMouseDown);
|
|
56773
|
+
document.addEventListener("mouseup", this.onMouseUp);
|
|
56761
56774
|
}
|
|
56762
56775
|
}, {
|
|
56763
56776
|
key: "enableMouseMoveIntersection",
|
|
@@ -56769,9 +56782,9 @@ var Mouse = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
56769
56782
|
value: function disable() {
|
|
56770
56783
|
this.enabled = false;
|
|
56771
56784
|
this.mouseMoveIntersectionEnabled = false;
|
|
56772
|
-
document.removeEventListener(
|
|
56773
|
-
Scene$1.getDOMElement().removeEventListener(
|
|
56774
|
-
Scene$1.getDOMElement().removeEventListener(
|
|
56785
|
+
document.removeEventListener("mouseup", this.onMouseUp);
|
|
56786
|
+
Scene$1.getDOMElement().removeEventListener("mousemove", this.onMouseMove);
|
|
56787
|
+
Scene$1.getDOMElement().removeEventListener("mousedown", this.onMouseDown);
|
|
56775
56788
|
}
|
|
56776
56789
|
}, {
|
|
56777
56790
|
key: "getRelativeMousePosition",
|
|
@@ -57736,7 +57749,7 @@ function applyMiddleware() {
|
|
|
57736
57749
|
|
|
57737
57750
|
var thunk = createThunkMiddleware();
|
|
57738
57751
|
thunk.withExtraArgument = createThunkMiddleware;var name = "mage-engine";
|
|
57739
|
-
var version$1 = "3.22.
|
|
57752
|
+
var version$1 = "3.22.1";
|
|
57740
57753
|
var description = "A WebGL Javascript Game Engine, built on top of THREE.js and many other libraries.";
|
|
57741
57754
|
var main = "dist/mage.js";
|
|
57742
57755
|
var author$1 = {
|
|
@@ -58377,6 +58390,9 @@ var Input = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
58377
58390
|
});
|
|
58378
58391
|
|
|
58379
58392
|
_this.enabled = false;
|
|
58393
|
+
_this.mouse = new Mouse();
|
|
58394
|
+
_this.keyboard = new Keyboard();
|
|
58395
|
+
_this.gamepad = new Gamepad();
|
|
58380
58396
|
return _this;
|
|
58381
58397
|
}
|
|
58382
58398
|
|
|
@@ -58385,9 +58401,6 @@ var Input = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
58385
58401
|
value: function enable() {
|
|
58386
58402
|
if (!this.enabled) {
|
|
58387
58403
|
dispatch$8(inputEnabled());
|
|
58388
|
-
this.mouse = new Mouse();
|
|
58389
|
-
this.keyboard = new Keyboard();
|
|
58390
|
-
this.gamepad = new Gamepad();
|
|
58391
58404
|
this.enableGamepad();
|
|
58392
58405
|
this.enableKeyboard();
|
|
58393
58406
|
this.enableMouse();
|
|
@@ -60158,6 +60171,12 @@ var tweenTo = function tweenTo(origin, target) {
|
|
|
60158
60171
|
value: function isSerializable() {
|
|
60159
60172
|
return !!this.serializable;
|
|
60160
60173
|
}
|
|
60174
|
+
}, {
|
|
60175
|
+
key: "setSerializable",
|
|
60176
|
+
value: function setSerializable() {
|
|
60177
|
+
var serializable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
60178
|
+
this.serializable = serializable;
|
|
60179
|
+
}
|
|
60161
60180
|
}, {
|
|
60162
60181
|
key: "isDisposed",
|
|
60163
60182
|
value: function isDisposed() {
|
|
@@ -61048,7 +61067,7 @@ var isTextureMapAllowedForMaterial = function isTextureMapAllowedForMaterial(mat
|
|
|
61048
61067
|
};var _excluded$8 = ["position", "quaternion"],
|
|
61049
61068
|
_excluded2 = ["applyPhysicsUpdate"],
|
|
61050
61069
|
_excluded3 = ["dt", "event"];
|
|
61051
|
-
var COLLIDER_TAG =
|
|
61070
|
+
var COLLIDER_TAG = "collider";
|
|
61052
61071
|
var DEFAULT_COLLIDER_OFFSET = {
|
|
61053
61072
|
x: 0,
|
|
61054
61073
|
y: 0,
|
|
@@ -62432,6 +62451,24 @@ var Sprite = /*#__PURE__*/function (_Element) {
|
|
|
62432
62451
|
var rotation = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.getRotation();
|
|
62433
62452
|
this.body.material.rotation = rotation;
|
|
62434
62453
|
}
|
|
62454
|
+
}, {
|
|
62455
|
+
key: "setSizeAttenuation",
|
|
62456
|
+
value: function setSizeAttenuation() {
|
|
62457
|
+
var attenuation = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
62458
|
+
this.body.material.sizeAttenuation = attenuation;
|
|
62459
|
+
}
|
|
62460
|
+
}, {
|
|
62461
|
+
key: "setDepthTest",
|
|
62462
|
+
value: function setDepthTest() {
|
|
62463
|
+
var depthTest = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
62464
|
+
this.body.material.depthTest = depthTest;
|
|
62465
|
+
}
|
|
62466
|
+
}, {
|
|
62467
|
+
key: "setDepthWrite",
|
|
62468
|
+
value: function setDepthWrite() {
|
|
62469
|
+
var depthWrite = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
62470
|
+
this.body.material.depthWrite = depthWrite;
|
|
62471
|
+
}
|
|
62435
62472
|
}]);
|
|
62436
62473
|
|
|
62437
62474
|
return Sprite;
|
|
@@ -82853,9 +82890,7 @@ var MeshLoader = /*#__PURE__*/function (_Loader) {
|
|
|
82853
82890
|
|
|
82854
82891
|
return MeshLoader;
|
|
82855
82892
|
}(Loader);
|
|
82856
|
-
var MeshLoader$1 = new MeshLoader();var
|
|
82857
|
-
|
|
82858
|
-
var Light = /*#__PURE__*/function (_Entity) {
|
|
82893
|
+
var MeshLoader$1 = new MeshLoader();var Light = /*#__PURE__*/function (_Entity) {
|
|
82859
82894
|
_inherits(Light, _Entity);
|
|
82860
82895
|
|
|
82861
82896
|
var _super = _createSuper(Light);
|
|
@@ -82874,36 +82909,53 @@ var Light = /*#__PURE__*/function (_Entity) {
|
|
|
82874
82909
|
});
|
|
82875
82910
|
|
|
82876
82911
|
_defineProperty$1(_assertThisInitialized(_this), "addHolder", function () {
|
|
82877
|
-
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
82878
|
-
var
|
|
82879
|
-
|
|
82880
|
-
|
|
82881
|
-
|
|
82882
|
-
|
|
82883
|
-
_this.holder.setMaterialFromName(MATERIALS.BASIC, {
|
|
82884
|
-
wireframe: true,
|
|
82885
|
-
color: LAMP_COLOR
|
|
82886
|
-
});
|
|
82887
|
-
|
|
82888
|
-
_this.holder.serializable = false;
|
|
82912
|
+
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "lightholder";
|
|
82913
|
+
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.05;
|
|
82914
|
+
var holderSprite = new Sprite(size, size, name, {
|
|
82915
|
+
name: name
|
|
82916
|
+
});
|
|
82889
82917
|
|
|
82890
|
-
|
|
82891
|
-
|
|
82892
|
-
|
|
82893
|
-
|
|
82894
|
-
|
|
82918
|
+
if (holderSprite) {
|
|
82919
|
+
holderSprite.setSizeAttenuation(false);
|
|
82920
|
+
holderSprite.setDepthTest(false);
|
|
82921
|
+
holderSprite.setDepthWrite(false);
|
|
82922
|
+
holderSprite.setSerializable(false);
|
|
82923
|
+
holderSprite.setPosition(_this.getPosition());
|
|
82924
|
+
holderSprite.addTags([TAGS.LIGHTS.HELPER, TAGS.LIGHTS.HOLDER, name]);
|
|
82925
|
+
_this.holder = holderSprite;
|
|
82926
|
+
return true;
|
|
82895
82927
|
} else {
|
|
82896
82928
|
console.warn(LIGHT_HOLDER_MODEL_NOT_FOUND);
|
|
82929
|
+
return false;
|
|
82930
|
+
}
|
|
82931
|
+
});
|
|
82932
|
+
|
|
82933
|
+
_defineProperty$1(_assertThisInitialized(_this), "addTargetHolder", function () {
|
|
82934
|
+
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "targetholder";
|
|
82935
|
+
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.05;
|
|
82936
|
+
var targetSprite = new Sprite(size, size, name, {
|
|
82937
|
+
name: name
|
|
82938
|
+
});
|
|
82939
|
+
|
|
82940
|
+
if (targetSprite) {
|
|
82941
|
+
targetSprite.setSizeAttenuation(false);
|
|
82942
|
+
targetSprite.setDepthTest(false);
|
|
82943
|
+
targetSprite.setDepthWrite(false);
|
|
82944
|
+
targetSprite.setSerializable(false);
|
|
82945
|
+
targetSprite.setPosition(_this.getTargetPosition());
|
|
82946
|
+
targetSprite.addTags([TAGS.LIGHTS.HELPER, TAGS.LIGHTS.TARGET, name]);
|
|
82947
|
+
targetSprite.getBody().add(_this.getBody().target);
|
|
82948
|
+
_this.targetHolder = targetSprite;
|
|
82897
82949
|
}
|
|
82898
82950
|
});
|
|
82899
82951
|
|
|
82900
82952
|
_this.color = color;
|
|
82901
82953
|
_this.intensity = intensity;
|
|
82902
|
-
_this.name = _name || generateRandomName(
|
|
82954
|
+
_this.name = _name || generateRandomName("Light");
|
|
82903
82955
|
_this.isLightOn = false;
|
|
82904
82956
|
_this.body = undefined; // helper body for this light
|
|
82905
82957
|
|
|
82906
|
-
_this.
|
|
82958
|
+
_this.isUsingHelper = undefined; // holder body representing the light
|
|
82907
82959
|
|
|
82908
82960
|
_this.holder = undefined; // target body for the light (only used by directional light)
|
|
82909
82961
|
|
|
@@ -82923,15 +82975,20 @@ var Light = /*#__PURE__*/function (_Entity) {
|
|
|
82923
82975
|
}
|
|
82924
82976
|
}
|
|
82925
82977
|
}, {
|
|
82926
|
-
key: "
|
|
82927
|
-
value: function
|
|
82928
|
-
return !!this.
|
|
82978
|
+
key: "usingHelper",
|
|
82979
|
+
value: function usingHelper() {
|
|
82980
|
+
return !!this.isUsingHelper;
|
|
82929
82981
|
}
|
|
82930
82982
|
}, {
|
|
82931
82983
|
key: "hasHolder",
|
|
82932
82984
|
value: function hasHolder() {
|
|
82933
82985
|
return !!this.holder;
|
|
82934
82986
|
}
|
|
82987
|
+
}, {
|
|
82988
|
+
key: "hasTarget",
|
|
82989
|
+
value: function hasTarget() {
|
|
82990
|
+
return false;
|
|
82991
|
+
}
|
|
82935
82992
|
}, {
|
|
82936
82993
|
key: "getPosition",
|
|
82937
82994
|
value: function getPosition() {
|
|
@@ -83081,7 +83138,7 @@ var SunLight = /*#__PURE__*/function (_Light) {
|
|
|
83081
83138
|
_options$intensity = options.intensity,
|
|
83082
83139
|
intensity = _options$intensity === void 0 ? DEFAULT_INTENSITY$4 : _options$intensity,
|
|
83083
83140
|
_options$name = options.name,
|
|
83084
|
-
name = _options$name === void 0 ? generateRandomName(
|
|
83141
|
+
name = _options$name === void 0 ? generateRandomName("SunLight") : _options$name;
|
|
83085
83142
|
_this = _super.call(this, {
|
|
83086
83143
|
color: color,
|
|
83087
83144
|
intensity: intensity,
|
|
@@ -83173,19 +83230,9 @@ var SunLight = /*#__PURE__*/function (_Light) {
|
|
|
83173
83230
|
}
|
|
83174
83231
|
}
|
|
83175
83232
|
}, {
|
|
83176
|
-
key: "
|
|
83177
|
-
value: function
|
|
83178
|
-
|
|
83179
|
-
var material = new MeshBasicMaterial({
|
|
83180
|
-
color: 0xeeeeee,
|
|
83181
|
-
wireframe: true
|
|
83182
|
-
});
|
|
83183
|
-
var target = new Element$1({
|
|
83184
|
-
geometry: geometry,
|
|
83185
|
-
material: material
|
|
83186
|
-
});
|
|
83187
|
-
target.position(initialPosition);
|
|
83188
|
-
return target;
|
|
83233
|
+
key: "hasTarget",
|
|
83234
|
+
value: function hasTarget() {
|
|
83235
|
+
return true;
|
|
83189
83236
|
}
|
|
83190
83237
|
}, {
|
|
83191
83238
|
key: "setTarget",
|
|
@@ -83201,20 +83248,32 @@ var SunLight = /*#__PURE__*/function (_Light) {
|
|
|
83201
83248
|
return this.target;
|
|
83202
83249
|
}
|
|
83203
83250
|
}, {
|
|
83204
|
-
key: "
|
|
83205
|
-
value: function
|
|
83206
|
-
|
|
83207
|
-
|
|
83251
|
+
key: "addHelpers",
|
|
83252
|
+
value: function addHelpers() {
|
|
83253
|
+
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
83254
|
+
_ref2$holderName = _ref2.holderName,
|
|
83255
|
+
holderName = _ref2$holderName === void 0 ? "sunlightHelper" : _ref2$holderName,
|
|
83256
|
+
_ref2$holderSize = _ref2.holderSize,
|
|
83257
|
+
holderSize = _ref2$holderSize === void 0 ? 0.05 : _ref2$holderSize,
|
|
83258
|
+
_ref2$targetHolderNam = _ref2.targetHolderName,
|
|
83259
|
+
targetHolderName = _ref2$targetHolderNam === void 0 ? "targetholder" : _ref2$targetHolderNam,
|
|
83260
|
+
_ref2$targetHolderSiz = _ref2.targetHolderSize,
|
|
83261
|
+
targetHolderSize = _ref2$targetHolderSiz === void 0 ? 0.05 : _ref2$targetHolderSiz;
|
|
83262
|
+
|
|
83263
|
+
this.helper = new DirectionalLightHelper(this.getBody(), 5);
|
|
83264
|
+
this.shadowHelper = new CameraHelper(this.getBody().shadow.camera);
|
|
83208
83265
|
Scene$1.add(this.helper, null, false);
|
|
83209
83266
|
Scene$1.add(this.shadowHelper, null, false);
|
|
83210
|
-
this.addHolder();
|
|
83267
|
+
this.addHolder(holderName, holderSize);
|
|
83268
|
+
this.addTargetHolder(targetHolderName, targetHolderSize);
|
|
83269
|
+
this.isUsingHelper = true;
|
|
83211
83270
|
}
|
|
83212
83271
|
}, {
|
|
83213
83272
|
key: "update",
|
|
83214
83273
|
value: function update(dt) {
|
|
83215
83274
|
_get(_getPrototypeOf(SunLight.prototype), "update", this).call(this, dt);
|
|
83216
83275
|
|
|
83217
|
-
if (this.
|
|
83276
|
+
if (this.usingHelper()) {
|
|
83218
83277
|
this.helper.update();
|
|
83219
83278
|
this.shadowHelper.update();
|
|
83220
83279
|
}
|
|
@@ -83253,7 +83312,7 @@ var AmbientLight = /*#__PURE__*/function (_Light) {
|
|
|
83253
83312
|
_options$intensity = options.intensity,
|
|
83254
83313
|
intensity = _options$intensity === void 0 ? DEFAULT_INTENSITY$3 : _options$intensity,
|
|
83255
83314
|
_options$name = options.name,
|
|
83256
|
-
name = _options$name === void 0 ? generateRandomName(
|
|
83315
|
+
name = _options$name === void 0 ? generateRandomName("AmbientLight") : _options$name;
|
|
83257
83316
|
_this = _super.call(this, {
|
|
83258
83317
|
color: color,
|
|
83259
83318
|
intensity: intensity,
|
|
@@ -83305,17 +83364,23 @@ var AmbientLight = /*#__PURE__*/function (_Light) {
|
|
|
83305
83364
|
this.addToScene();
|
|
83306
83365
|
}
|
|
83307
83366
|
}, {
|
|
83308
|
-
key: "
|
|
83309
|
-
value: function
|
|
83310
|
-
|
|
83311
|
-
|
|
83367
|
+
key: "addHelpers",
|
|
83368
|
+
value: function addHelpers() {
|
|
83369
|
+
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
83370
|
+
_ref2$holderName = _ref2.holderName,
|
|
83371
|
+
holderName = _ref2$holderName === void 0 ? "ambientlightholder" : _ref2$holderName,
|
|
83372
|
+
_ref2$holderSize = _ref2.holderSize,
|
|
83373
|
+
holderSize = _ref2$holderSize === void 0 ? 0.05 : _ref2$holderSize;
|
|
83374
|
+
|
|
83375
|
+
this.addHolder(holderName, holderSize);
|
|
83376
|
+
this.isUsingHelper = true;
|
|
83312
83377
|
}
|
|
83313
83378
|
}, {
|
|
83314
83379
|
key: "update",
|
|
83315
83380
|
value: function update(dt) {
|
|
83316
83381
|
_get(_getPrototypeOf(AmbientLight.prototype), "update", this).call(this, dt);
|
|
83317
83382
|
|
|
83318
|
-
if (this.
|
|
83383
|
+
if (this.usingHelper()) {
|
|
83319
83384
|
this.setPosition(this.holder.getPosition(), {
|
|
83320
83385
|
updateHolder: false
|
|
83321
83386
|
});
|
|
@@ -83356,7 +83421,7 @@ var PointLight = /*#__PURE__*/function (_Light) {
|
|
|
83356
83421
|
_options$intensity = options.intensity,
|
|
83357
83422
|
intensity = _options$intensity === void 0 ? DEFAULT_INTENSITY$2 : _options$intensity,
|
|
83358
83423
|
_options$name = options.name,
|
|
83359
|
-
name = _options$name === void 0 ? generateRandomName(
|
|
83424
|
+
name = _options$name === void 0 ? generateRandomName("PointLight") : _options$name,
|
|
83360
83425
|
distance = options.distance,
|
|
83361
83426
|
decay = options.decay;
|
|
83362
83427
|
_this = _super.call(this, {
|
|
@@ -83444,20 +83509,27 @@ var PointLight = /*#__PURE__*/function (_Light) {
|
|
|
83444
83509
|
}
|
|
83445
83510
|
}
|
|
83446
83511
|
}, {
|
|
83447
|
-
key: "
|
|
83448
|
-
value: function
|
|
83449
|
-
|
|
83450
|
-
|
|
83512
|
+
key: "addHelpers",
|
|
83513
|
+
value: function addHelpers() {
|
|
83514
|
+
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
83515
|
+
_ref2$holderName = _ref2.holderName,
|
|
83516
|
+
holderName = _ref2$holderName === void 0 ? "pointlightholder" : _ref2$holderName,
|
|
83517
|
+
_ref2$holderSize = _ref2.holderSize,
|
|
83518
|
+
holderSize = _ref2$holderSize === void 0 ? 0.05 : _ref2$holderSize;
|
|
83519
|
+
|
|
83520
|
+
this.helper = new PointLightHelper(this.getBody(), 2, GREEN$2);
|
|
83521
|
+
this.shadowHelper = new CameraHelper(this.getBody().shadow.camera);
|
|
83451
83522
|
Scene$1.add(this.helper, null, false);
|
|
83452
83523
|
Scene$1.add(this.shadowHelper, null, false);
|
|
83453
|
-
this.addHolder();
|
|
83524
|
+
this.addHolder(holderName, holderSize);
|
|
83525
|
+
this.isUsingHelper = true;
|
|
83454
83526
|
}
|
|
83455
83527
|
}, {
|
|
83456
83528
|
key: "update",
|
|
83457
83529
|
value: function update(dt) {
|
|
83458
83530
|
_get(_getPrototypeOf(PointLight.prototype), "update", this).call(this, dt);
|
|
83459
83531
|
|
|
83460
|
-
if (this.
|
|
83532
|
+
if (this.usingHelper()) {
|
|
83461
83533
|
this.helper.update();
|
|
83462
83534
|
this.shadowHelper.update();
|
|
83463
83535
|
}
|
|
@@ -83509,7 +83581,7 @@ var PointLight = /*#__PURE__*/function (_Light) {
|
|
|
83509
83581
|
}
|
|
83510
83582
|
|
|
83511
83583
|
if (light && useHelper) {
|
|
83512
|
-
light.
|
|
83584
|
+
light.addHelpers();
|
|
83513
83585
|
}
|
|
83514
83586
|
};
|
|
83515
83587
|
});
|
|
@@ -88174,17 +88246,17 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88174
88246
|
if (planeIntersect) {
|
|
88175
88247
|
var space = _this.space;
|
|
88176
88248
|
|
|
88177
|
-
if (_this.mode ===
|
|
88178
|
-
space =
|
|
88179
|
-
} else if (_this.axis ===
|
|
88180
|
-
space =
|
|
88249
|
+
if (_this.mode === "scale") {
|
|
88250
|
+
space = "local";
|
|
88251
|
+
} else if (_this.axis === "E" || _this.axis === "XYZE" || _this.axis === "XYZ") {
|
|
88252
|
+
space = "world";
|
|
88181
88253
|
}
|
|
88182
88254
|
|
|
88183
|
-
if (space ===
|
|
88255
|
+
if (space === "local" && _this.mode === "rotate") {
|
|
88184
88256
|
var snap = _this.rotationSnap;
|
|
88185
|
-
if (_this.axis ===
|
|
88186
|
-
if (_this.axis ===
|
|
88187
|
-
if (_this.axis ===
|
|
88257
|
+
if (_this.axis === "X" && snap) _this.object.rotation.x = Math.round(_this.object.rotation.x / snap) * snap;
|
|
88258
|
+
if (_this.axis === "Y" && snap) _this.object.rotation.y = Math.round(_this.object.rotation.y / snap) * snap;
|
|
88259
|
+
if (_this.axis === "Z" && snap) _this.object.rotation.z = Math.round(_this.object.rotation.z / snap) * snap;
|
|
88188
88260
|
}
|
|
88189
88261
|
|
|
88190
88262
|
_this.object.updateMatrixWorld();
|
|
@@ -88201,7 +88273,7 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88201
88273
|
|
|
88202
88274
|
_this.pointStart.copy(planeIntersect.point).sub(_this.worldPositionStart);
|
|
88203
88275
|
|
|
88204
|
-
if (space ===
|
|
88276
|
+
if (space === "local") {
|
|
88205
88277
|
_this.pointStart.applyQuaternion(_this.worldQuaternionStart.clone().invert());
|
|
88206
88278
|
}
|
|
88207
88279
|
}
|
|
@@ -88219,10 +88291,10 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88219
88291
|
var object = _this.object;
|
|
88220
88292
|
var space = _this.space;
|
|
88221
88293
|
|
|
88222
|
-
if (mode ===
|
|
88223
|
-
space =
|
|
88224
|
-
} else if (axis ===
|
|
88225
|
-
space =
|
|
88294
|
+
if (mode === "scale") {
|
|
88295
|
+
space = "local";
|
|
88296
|
+
} else if (axis === "E" || axis === "XYZE" || axis === "XYZ") {
|
|
88297
|
+
space = "world";
|
|
88226
88298
|
}
|
|
88227
88299
|
|
|
88228
88300
|
if (object === undefined || axis === null || _this.dragging === false || pointer.button !== undefined && pointer.button !== 0) return;
|
|
@@ -88234,23 +88306,23 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88234
88306
|
|
|
88235
88307
|
_this.pointEnd.copy(planeIntersect.point).sub(_this.worldPositionStart);
|
|
88236
88308
|
|
|
88237
|
-
if (space ===
|
|
88309
|
+
if (space === "local") _this.pointEnd.applyQuaternion(_this.worldQuaternionStart.clone().invert());
|
|
88238
88310
|
|
|
88239
|
-
if (mode ===
|
|
88240
|
-
if (axis.search(
|
|
88311
|
+
if (mode === "translate") {
|
|
88312
|
+
if (axis.search("X") === -1) {
|
|
88241
88313
|
_this.pointEnd.x = _this.pointStart.x;
|
|
88242
88314
|
}
|
|
88243
88315
|
|
|
88244
|
-
if (axis.search(
|
|
88316
|
+
if (axis.search("Y") === -1) {
|
|
88245
88317
|
_this.pointEnd.y = _this.pointStart.y;
|
|
88246
88318
|
}
|
|
88247
88319
|
|
|
88248
|
-
if (axis.search(
|
|
88320
|
+
if (axis.search("Z") === -1) {
|
|
88249
88321
|
_this.pointEnd.z = _this.pointStart.z;
|
|
88250
88322
|
} // Apply translate
|
|
88251
88323
|
|
|
88252
88324
|
|
|
88253
|
-
if (space ===
|
|
88325
|
+
if (space === "local") {
|
|
88254
88326
|
object.position.copy(_this.pointEnd).sub(_this.pointStart).applyQuaternion(_this._quaternionStart);
|
|
88255
88327
|
} else {
|
|
88256
88328
|
object.position.copy(_this.pointEnd).sub(_this.pointStart);
|
|
@@ -88259,38 +88331,38 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88259
88331
|
object.position.add(_this._positionStart); // Apply translation snap
|
|
88260
88332
|
|
|
88261
88333
|
if (_this.translationSnap) {
|
|
88262
|
-
if (space ===
|
|
88334
|
+
if (space === "local") {
|
|
88263
88335
|
object.position.applyQuaternion(_this._tempQuaternion.copy(_this._quaternionStart).invert());
|
|
88264
88336
|
|
|
88265
|
-
if (axis.search(
|
|
88337
|
+
if (axis.search("X") !== -1) {
|
|
88266
88338
|
object.position.x = Math.round(object.position.x / _this.translationSnap) * _this.translationSnap;
|
|
88267
88339
|
}
|
|
88268
88340
|
|
|
88269
|
-
if (axis.search(
|
|
88341
|
+
if (axis.search("Y") !== -1) {
|
|
88270
88342
|
object.position.y = Math.round(object.position.y / _this.translationSnap) * _this.translationSnap;
|
|
88271
88343
|
}
|
|
88272
88344
|
|
|
88273
|
-
if (axis.search(
|
|
88345
|
+
if (axis.search("Z") !== -1) {
|
|
88274
88346
|
object.position.z = Math.round(object.position.z / _this.translationSnap) * _this.translationSnap;
|
|
88275
88347
|
}
|
|
88276
88348
|
|
|
88277
88349
|
object.position.applyQuaternion(_this._quaternionStart);
|
|
88278
88350
|
}
|
|
88279
88351
|
|
|
88280
|
-
if (space ===
|
|
88352
|
+
if (space === "world") {
|
|
88281
88353
|
if (object.parent) {
|
|
88282
88354
|
object.position.add(_this._tempVector.setFromMatrixPosition(object.parent.matrixWorld));
|
|
88283
88355
|
}
|
|
88284
88356
|
|
|
88285
|
-
if (axis.search(
|
|
88357
|
+
if (axis.search("X") !== -1) {
|
|
88286
88358
|
object.position.x = Math.round(object.position.x / _this.translationSnap) * _this.translationSnap;
|
|
88287
88359
|
}
|
|
88288
88360
|
|
|
88289
|
-
if (axis.search(
|
|
88361
|
+
if (axis.search("Y") !== -1) {
|
|
88290
88362
|
object.position.y = Math.round(object.position.y / _this.translationSnap) * _this.translationSnap;
|
|
88291
88363
|
}
|
|
88292
88364
|
|
|
88293
|
-
if (axis.search(
|
|
88365
|
+
if (axis.search("Z") !== -1) {
|
|
88294
88366
|
object.position.z = Math.round(object.position.z / _this.translationSnap) * _this.translationSnap;
|
|
88295
88367
|
}
|
|
88296
88368
|
|
|
@@ -88299,8 +88371,8 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88299
88371
|
}
|
|
88300
88372
|
}
|
|
88301
88373
|
}
|
|
88302
|
-
} else if (mode ===
|
|
88303
|
-
if (axis.search(
|
|
88374
|
+
} else if (mode === "scale") {
|
|
88375
|
+
if (axis.search("XYZ") !== -1) {
|
|
88304
88376
|
var d = _this.pointEnd.length() / _this.pointStart.length();
|
|
88305
88377
|
|
|
88306
88378
|
if (_this.pointEnd.dot(_this.pointStart) < 0) d *= -1;
|
|
@@ -88309,40 +88381,40 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88309
88381
|
} else {
|
|
88310
88382
|
_this._tempVector.copy(_this.pointEnd).divide(_this.pointStart);
|
|
88311
88383
|
|
|
88312
|
-
if (axis.search(
|
|
88384
|
+
if (axis.search("X") === -1) {
|
|
88313
88385
|
_this._tempVector.x = 1;
|
|
88314
88386
|
}
|
|
88315
88387
|
|
|
88316
|
-
if (axis.search(
|
|
88388
|
+
if (axis.search("Y") === -1) {
|
|
88317
88389
|
_this._tempVector.y = 1;
|
|
88318
88390
|
}
|
|
88319
88391
|
|
|
88320
|
-
if (axis.search(
|
|
88392
|
+
if (axis.search("Z") === -1) {
|
|
88321
88393
|
_this._tempVector.z = 1;
|
|
88322
88394
|
}
|
|
88323
88395
|
} // Apply scale
|
|
88324
88396
|
|
|
88325
88397
|
|
|
88326
88398
|
object.scale.copy(_this._scaleStart).multiply(_this._tempVector);
|
|
88327
|
-
} else if (mode ===
|
|
88399
|
+
} else if (mode === "rotate") {
|
|
88328
88400
|
var ROTATION_SPEED = 20 / _this.worldPosition.distanceTo(_this._tempVector.setFromMatrixPosition(_this.camera.matrixWorld));
|
|
88329
88401
|
|
|
88330
88402
|
var quaternion = _this.space === "local" ? _this.worldQuaternion : _this._identityQuaternion;
|
|
88331
88403
|
var unit = _unit[axis];
|
|
88332
88404
|
|
|
88333
|
-
if (axis ===
|
|
88405
|
+
if (axis === "E") {
|
|
88334
88406
|
_this._tempVector.copy(_this.pointEnd).cross(_this.pointStart);
|
|
88335
88407
|
|
|
88336
88408
|
_this.rotationAxis.copy(_this.eye);
|
|
88337
88409
|
|
|
88338
88410
|
_this.rotationAngle = _this.pointEnd.angleTo(_this.pointStart) * (_this._tempVector.dot(_this.eye) < 0 ? 1 : -1);
|
|
88339
|
-
} else if (axis ===
|
|
88411
|
+
} else if (axis === "XYZE") {
|
|
88340
88412
|
_this._tempVector.copy(_this.pointEnd).sub(_this.pointStart).cross(_this.eye).normalize();
|
|
88341
88413
|
|
|
88342
88414
|
_this.rotationAxis.copy(_this._tempVector);
|
|
88343
88415
|
|
|
88344
88416
|
_this.rotationAngle = _this.pointEnd.sub(_this.pointStart).dot(_this._tempVector.cross(_this.eye)) * ROTATION_SPEED;
|
|
88345
|
-
} else if (axis ===
|
|
88417
|
+
} else if (axis === "X" || axis === "Y" || axis === "Z") {
|
|
88346
88418
|
_this._alignVector.copy(unit).applyQuaternion(quaternion);
|
|
88347
88419
|
|
|
88348
88420
|
_this.rotationAxis.copy(unit);
|
|
@@ -88350,7 +88422,7 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88350
88422
|
_this._tempVector = unit.clone();
|
|
88351
88423
|
_this._tempVector2 = _this.pointEnd.clone().sub(_this.pointStart);
|
|
88352
88424
|
|
|
88353
|
-
if (space ===
|
|
88425
|
+
if (space === "local") {
|
|
88354
88426
|
_this._tempVector.applyQuaternion(quaternion);
|
|
88355
88427
|
|
|
88356
88428
|
_this._tempVector2.applyQuaternion(_this.worldQuaternionStart);
|
|
@@ -88362,7 +88434,7 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88362
88434
|
|
|
88363
88435
|
if (_this.rotationSnap) _this.rotationAngle = Math.round(_this.rotationAngle / _this.rotationSnap) * _this.rotationSnap; // Apply rotate
|
|
88364
88436
|
|
|
88365
|
-
if (space ===
|
|
88437
|
+
if (space === "local") {
|
|
88366
88438
|
object.quaternion.copy(_this._quaternionStart);
|
|
88367
88439
|
object.quaternion.multiply(_this._tempQuaternion.setFromAxisAngle(_this.rotationAxis, _this.rotationAngle));
|
|
88368
88440
|
} else {
|
|
@@ -88382,10 +88454,10 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88382
88454
|
var object = _this.object;
|
|
88383
88455
|
var space = _this.space;
|
|
88384
88456
|
|
|
88385
|
-
if (mode ===
|
|
88386
|
-
space =
|
|
88387
|
-
} else if (axis ===
|
|
88388
|
-
space =
|
|
88457
|
+
if (mode === "scale") {
|
|
88458
|
+
space = "local";
|
|
88459
|
+
} else if (axis === "E" || axis === "XYZE" || axis === "XYZ") {
|
|
88460
|
+
space = "world";
|
|
88389
88461
|
}
|
|
88390
88462
|
|
|
88391
88463
|
if (object === undefined || axis === null || _this.dragging === false || pointer.button !== undefined && pointer.button !== 0) return;
|
|
@@ -88397,23 +88469,23 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88397
88469
|
|
|
88398
88470
|
_this.pointEnd.copy(planeIntersect.point).sub(_this.worldPositionStart);
|
|
88399
88471
|
|
|
88400
|
-
if (space ===
|
|
88472
|
+
if (space === "local") _this.pointEnd.applyQuaternion(_this.worldQuaternionStart.clone().invert());
|
|
88401
88473
|
|
|
88402
|
-
if (mode ===
|
|
88403
|
-
if (axis.search(
|
|
88474
|
+
if (mode === "translate") {
|
|
88475
|
+
if (axis.search("X") === -1) {
|
|
88404
88476
|
_this.pointEnd.x = _this.pointStart.x;
|
|
88405
88477
|
}
|
|
88406
88478
|
|
|
88407
|
-
if (axis.search(
|
|
88479
|
+
if (axis.search("Y") === -1) {
|
|
88408
88480
|
_this.pointEnd.y = _this.pointStart.y;
|
|
88409
88481
|
}
|
|
88410
88482
|
|
|
88411
|
-
if (axis.search(
|
|
88483
|
+
if (axis.search("Z") === -1) {
|
|
88412
88484
|
_this.pointEnd.z = _this.pointStart.z;
|
|
88413
88485
|
} // Apply translate
|
|
88414
88486
|
|
|
88415
88487
|
|
|
88416
|
-
if (space ===
|
|
88488
|
+
if (space === "local") {
|
|
88417
88489
|
object.position.copy(_this.pointEnd).sub(_this.pointStart).applyQuaternion(_this._quaternionStart);
|
|
88418
88490
|
} else {
|
|
88419
88491
|
object.position.copy(_this.pointEnd).sub(_this.pointStart);
|
|
@@ -88422,38 +88494,38 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88422
88494
|
object.position.add(_this._positionStart); // Apply translation snap
|
|
88423
88495
|
|
|
88424
88496
|
if (_this.translationSnap) {
|
|
88425
|
-
if (space ===
|
|
88497
|
+
if (space === "local") {
|
|
88426
88498
|
object.position.applyQuaternion(_this._tempQuaternion.copy(_this._quaternionStart).invert());
|
|
88427
88499
|
|
|
88428
|
-
if (axis.search(
|
|
88500
|
+
if (axis.search("X") !== -1) {
|
|
88429
88501
|
object.position.x = Math.round(object.position.x / _this.translationSnap) * _this.translationSnap;
|
|
88430
88502
|
}
|
|
88431
88503
|
|
|
88432
|
-
if (axis.search(
|
|
88504
|
+
if (axis.search("Y") !== -1) {
|
|
88433
88505
|
object.position.y = Math.round(object.position.y / _this.translationSnap) * _this.translationSnap;
|
|
88434
88506
|
}
|
|
88435
88507
|
|
|
88436
|
-
if (axis.search(
|
|
88508
|
+
if (axis.search("Z") !== -1) {
|
|
88437
88509
|
object.position.z = Math.round(object.position.z / _this.translationSnap) * _this.translationSnap;
|
|
88438
88510
|
}
|
|
88439
88511
|
|
|
88440
88512
|
object.position.applyQuaternion(_this._quaternionStart);
|
|
88441
88513
|
}
|
|
88442
88514
|
|
|
88443
|
-
if (space ===
|
|
88515
|
+
if (space === "world") {
|
|
88444
88516
|
if (object.parent) {
|
|
88445
88517
|
object.position.add(_this._tempVector.setFromMatrixPosition(object.parent.matrixWorld));
|
|
88446
88518
|
}
|
|
88447
88519
|
|
|
88448
|
-
if (axis.search(
|
|
88520
|
+
if (axis.search("X") !== -1) {
|
|
88449
88521
|
object.position.x = Math.round(object.position.x / _this.translationSnap) * _this.translationSnap;
|
|
88450
88522
|
}
|
|
88451
88523
|
|
|
88452
|
-
if (axis.search(
|
|
88524
|
+
if (axis.search("Y") !== -1) {
|
|
88453
88525
|
object.position.y = Math.round(object.position.y / _this.translationSnap) * _this.translationSnap;
|
|
88454
88526
|
}
|
|
88455
88527
|
|
|
88456
|
-
if (axis.search(
|
|
88528
|
+
if (axis.search("Z") !== -1) {
|
|
88457
88529
|
object.position.z = Math.round(object.position.z / _this.translationSnap) * _this.translationSnap;
|
|
88458
88530
|
}
|
|
88459
88531
|
|
|
@@ -88462,8 +88534,8 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88462
88534
|
}
|
|
88463
88535
|
}
|
|
88464
88536
|
}
|
|
88465
|
-
} else if (mode ===
|
|
88466
|
-
if (axis.search(
|
|
88537
|
+
} else if (mode === "scale") {
|
|
88538
|
+
if (axis.search("XYZ") !== -1) {
|
|
88467
88539
|
var d = _this.pointEnd.length() / _this.pointStart.length();
|
|
88468
88540
|
|
|
88469
88541
|
if (_this.pointEnd.dot(_this.pointStart) < 0) d *= -1;
|
|
@@ -88472,40 +88544,40 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88472
88544
|
} else {
|
|
88473
88545
|
_this._tempVector.copy(_this.pointEnd).divide(_this.pointStart);
|
|
88474
88546
|
|
|
88475
|
-
if (axis.search(
|
|
88547
|
+
if (axis.search("X") === -1) {
|
|
88476
88548
|
_this._tempVector.x = 1;
|
|
88477
88549
|
}
|
|
88478
88550
|
|
|
88479
|
-
if (axis.search(
|
|
88551
|
+
if (axis.search("Y") === -1) {
|
|
88480
88552
|
_this._tempVector.y = 1;
|
|
88481
88553
|
}
|
|
88482
88554
|
|
|
88483
|
-
if (axis.search(
|
|
88555
|
+
if (axis.search("Z") === -1) {
|
|
88484
88556
|
_this._tempVector.z = 1;
|
|
88485
88557
|
}
|
|
88486
88558
|
} // Apply scale
|
|
88487
88559
|
|
|
88488
88560
|
|
|
88489
88561
|
object.scale.copy(_this._scaleStart).multiply(_this._tempVector);
|
|
88490
|
-
} else if (mode ===
|
|
88562
|
+
} else if (mode === "rotate") {
|
|
88491
88563
|
var ROTATION_SPEED = 20 / _this.worldPosition.distanceTo(_this._tempVector.setFromMatrixPosition(_this.camera.matrixWorld));
|
|
88492
88564
|
|
|
88493
88565
|
var quaternion = _this.space === "local" ? _this.worldQuaternion : _this._identityQuaternion;
|
|
88494
88566
|
var unit = _this._unit[axis];
|
|
88495
88567
|
|
|
88496
|
-
if (axis ===
|
|
88568
|
+
if (axis === "E") {
|
|
88497
88569
|
_this._tempVector.copy(_this.pointEnd).cross(_this.pointStart);
|
|
88498
88570
|
|
|
88499
88571
|
_this.rotationAxis.copy(_this.eye);
|
|
88500
88572
|
|
|
88501
88573
|
_this.rotationAngle = _this.pointEnd.angleTo(_this.pointStart) * (_this._tempVector.dot(_this.eye) < 0 ? 1 : -1);
|
|
88502
|
-
} else if (axis ===
|
|
88574
|
+
} else if (axis === "XYZE") {
|
|
88503
88575
|
_this._tempVector.copy(_this.pointEnd).sub(_this.pointStart).cross(_this.eye).normalize();
|
|
88504
88576
|
|
|
88505
88577
|
_this.rotationAxis.copy(_this._tempVector);
|
|
88506
88578
|
|
|
88507
88579
|
_this.rotationAngle = _this.pointEnd.sub(_this.pointStart).dot(_this._tempVector.cross(_this.eye)) * ROTATION_SPEED;
|
|
88508
|
-
} else if (axis ===
|
|
88580
|
+
} else if (axis === "X" || axis === "Y" || axis === "Z") {
|
|
88509
88581
|
_this._alignVector.copy(unit).applyQuaternion(quaternion);
|
|
88510
88582
|
|
|
88511
88583
|
_this.rotationAxis.copy(unit);
|
|
@@ -88513,7 +88585,7 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88513
88585
|
_this._tempVector = unit.clone();
|
|
88514
88586
|
_this._tempVector2 = _this.pointEnd.clone().sub(_this.pointStart);
|
|
88515
88587
|
|
|
88516
|
-
if (space ===
|
|
88588
|
+
if (space === "local") {
|
|
88517
88589
|
_this._tempVector.applyQuaternion(quaternion);
|
|
88518
88590
|
|
|
88519
88591
|
_this._tempVector2.applyQuaternion(_this.worldQuaternionStart);
|
|
@@ -88525,7 +88597,7 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88525
88597
|
|
|
88526
88598
|
if (_this.rotationSnap) _this.rotationAngle = Math.round(_this.rotationAngle / _this.this.rotationSnap) * _this.this.rotationSnap; // Apply rotate
|
|
88527
88599
|
|
|
88528
|
-
if (space ===
|
|
88600
|
+
if (space === "local") {
|
|
88529
88601
|
object.quaternion.copy(_this._quaternionStart);
|
|
88530
88602
|
object.quaternion.multiply(_this._tempQuaternion.setFromAxisAngle(_this.rotationAxis, _this.rotationAngle));
|
|
88531
88603
|
} else {
|
|
@@ -88627,35 +88699,35 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88627
88699
|
_this._enabled = true;
|
|
88628
88700
|
_this._axis = null;
|
|
88629
88701
|
|
|
88630
|
-
_this.setAndDispatch(
|
|
88702
|
+
_this.setAndDispatch("axis", null);
|
|
88631
88703
|
|
|
88632
|
-
_this._mode =
|
|
88704
|
+
_this._mode = "translate";
|
|
88633
88705
|
|
|
88634
|
-
_this.setAndDispatch(
|
|
88706
|
+
_this.setAndDispatch("mode", "translate");
|
|
88635
88707
|
|
|
88636
88708
|
_this._translationSnap = null;
|
|
88637
88709
|
_this._rotationSnap = null;
|
|
88638
|
-
_this._space =
|
|
88710
|
+
_this._space = "world";
|
|
88639
88711
|
|
|
88640
|
-
_this.setAndDispatch(
|
|
88712
|
+
_this.setAndDispatch("space", "world");
|
|
88641
88713
|
|
|
88642
88714
|
_this._size = 1;
|
|
88643
88715
|
|
|
88644
|
-
_this.setAndDispatch(
|
|
88716
|
+
_this.setAndDispatch("size", 1);
|
|
88645
88717
|
|
|
88646
88718
|
_this._dragging = false;
|
|
88647
88719
|
|
|
88648
|
-
_this.setAndDispatch(
|
|
88720
|
+
_this.setAndDispatch("dragging", false);
|
|
88649
88721
|
|
|
88650
88722
|
_this._showX = true;
|
|
88651
88723
|
_this._showY = true;
|
|
88652
88724
|
_this._showZ = true;
|
|
88653
88725
|
|
|
88654
|
-
_this.setAndDispatch(
|
|
88726
|
+
_this.setAndDispatch("showX", true);
|
|
88655
88727
|
|
|
88656
|
-
_this.setAndDispatch(
|
|
88728
|
+
_this.setAndDispatch("showY", true);
|
|
88657
88729
|
|
|
88658
|
-
_this.setAndDispatch(
|
|
88730
|
+
_this.setAndDispatch("showZ", true);
|
|
88659
88731
|
|
|
88660
88732
|
_this.ray = new Raycaster();
|
|
88661
88733
|
_this._tempVector = new Vector3$1();
|
|
@@ -88672,16 +88744,16 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88672
88744
|
_this._pointEnd = new Vector3$1();
|
|
88673
88745
|
_this._rotationAxis = new Vector3$1();
|
|
88674
88746
|
|
|
88675
|
-
_this.setAndDispatch(
|
|
88747
|
+
_this.setAndDispatch("rotationAxis", new Vector3$1());
|
|
88676
88748
|
|
|
88677
88749
|
_this._rotationAngle = 0;
|
|
88678
88750
|
_this._cameraPosition = new Vector3$1();
|
|
88679
88751
|
|
|
88680
|
-
_this.setAndDispatch(
|
|
88752
|
+
_this.setAndDispatch("cameraPosition", new Vector3$1());
|
|
88681
88753
|
|
|
88682
88754
|
_this._cameraQuaternion = new Quaternion();
|
|
88683
88755
|
|
|
88684
|
-
_this.setAndDispatch(
|
|
88756
|
+
_this.setAndDispatch("cameraQuaternion", new Quaternion());
|
|
88685
88757
|
|
|
88686
88758
|
_this.cameraScale = new Vector3$1();
|
|
88687
88759
|
_this.parentPosition = new Vector3$1();
|
|
@@ -88689,25 +88761,25 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88689
88761
|
_this.parentScale = new Vector3$1();
|
|
88690
88762
|
_this._worldPositionStart = new Vector3$1();
|
|
88691
88763
|
|
|
88692
|
-
_this.setAndDispatch(
|
|
88764
|
+
_this.setAndDispatch("worldPositionStart", new Vector3$1());
|
|
88693
88765
|
|
|
88694
88766
|
_this._worldQuaternionStart = new Quaternion();
|
|
88695
88767
|
|
|
88696
|
-
_this.setAndDispatch(
|
|
88768
|
+
_this.setAndDispatch("worldQuaternionStart", new Quaternion());
|
|
88697
88769
|
|
|
88698
88770
|
_this.worldScaleStart = new Vector3$1();
|
|
88699
88771
|
_this._worldPosition = new Vector3$1();
|
|
88700
88772
|
|
|
88701
|
-
_this.setAndDispatch(
|
|
88773
|
+
_this.setAndDispatch("worldPosition", new Vector3$1());
|
|
88702
88774
|
|
|
88703
88775
|
_this._worldQuaternion = new Quaternion();
|
|
88704
88776
|
|
|
88705
|
-
_this.setAndDispatch(
|
|
88777
|
+
_this.setAndDispatch("worldQuaternion", new Quaternion());
|
|
88706
88778
|
|
|
88707
88779
|
_this.worldScale = new Vector3$1();
|
|
88708
88780
|
_this._eye = new Vector3$1();
|
|
88709
88781
|
|
|
88710
|
-
_this.setAndDispatch(
|
|
88782
|
+
_this.setAndDispatch("eye", new Vector3$1());
|
|
88711
88783
|
|
|
88712
88784
|
_this._positionStart = new Vector3$1();
|
|
88713
88785
|
_this._quaternionStart = new Quaternion();
|
|
@@ -88746,7 +88818,7 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88746
88818
|
}, {
|
|
88747
88819
|
key: "enabled",
|
|
88748
88820
|
value: function enabled(value) {
|
|
88749
|
-
this.setAndDispatch(
|
|
88821
|
+
this.setAndDispatch("enabled", value);
|
|
88750
88822
|
}
|
|
88751
88823
|
}, {
|
|
88752
88824
|
key: "init",
|
|
@@ -88853,222 +88925,222 @@ var Particles$1 = new Particles();var Orbit = /*#__PURE__*/function (_EventDispa
|
|
|
88853
88925
|
}, {
|
|
88854
88926
|
key: "camera",
|
|
88855
88927
|
set: function set(value) {
|
|
88856
|
-
this.setAndDispatch(
|
|
88928
|
+
this.setAndDispatch("camera", value);
|
|
88857
88929
|
},
|
|
88858
88930
|
get: function get() {
|
|
88859
|
-
return this.getPrivateField(
|
|
88931
|
+
return this.getPrivateField("camera");
|
|
88860
88932
|
}
|
|
88861
88933
|
}, {
|
|
88862
88934
|
key: "object",
|
|
88863
88935
|
set: function set(value) {
|
|
88864
|
-
this.setAndDispatch(
|
|
88936
|
+
this.setAndDispatch("object", value);
|
|
88865
88937
|
} // no
|
|
88866
88938
|
,
|
|
88867
88939
|
get: function get() {
|
|
88868
|
-
return this.getPrivateField(
|
|
88940
|
+
return this.getPrivateField("object");
|
|
88869
88941
|
}
|
|
88870
88942
|
}, {
|
|
88871
88943
|
key: "enabled",
|
|
88872
88944
|
get: function get() {
|
|
88873
|
-
return this.getPrivateField(
|
|
88945
|
+
return this.getPrivateField("enabled");
|
|
88874
88946
|
}
|
|
88875
88947
|
}, {
|
|
88876
88948
|
key: "axis",
|
|
88877
88949
|
set: function set(value) {
|
|
88878
|
-
this.setAndDispatch(
|
|
88950
|
+
this.setAndDispatch("axis", value);
|
|
88879
88951
|
} // si
|
|
88880
88952
|
,
|
|
88881
88953
|
get: function get() {
|
|
88882
|
-
return this.getPrivateField(
|
|
88954
|
+
return this.getPrivateField("axis");
|
|
88883
88955
|
}
|
|
88884
88956
|
}, {
|
|
88885
88957
|
key: "mode",
|
|
88886
88958
|
set: function set(value) {
|
|
88887
|
-
this.setAndDispatch(
|
|
88959
|
+
this.setAndDispatch("mode", value);
|
|
88888
88960
|
} // si
|
|
88889
88961
|
,
|
|
88890
88962
|
get: function get() {
|
|
88891
|
-
return this.getPrivateField(
|
|
88963
|
+
return this.getPrivateField("mode");
|
|
88892
88964
|
}
|
|
88893
88965
|
}, {
|
|
88894
88966
|
key: "translationSnap",
|
|
88895
88967
|
set: function set(value) {
|
|
88896
|
-
this.setAndDispatch(
|
|
88968
|
+
this.setAndDispatch("translationSnap", value);
|
|
88897
88969
|
} // no
|
|
88898
88970
|
,
|
|
88899
88971
|
get: function get() {
|
|
88900
|
-
return this.getPrivateField(
|
|
88972
|
+
return this.getPrivateField("translationSnap");
|
|
88901
88973
|
}
|
|
88902
88974
|
}, {
|
|
88903
88975
|
key: "rotationSnap",
|
|
88904
88976
|
set: function set(value) {
|
|
88905
|
-
this.setAndDispatch(
|
|
88977
|
+
this.setAndDispatch("rotationSnap", value);
|
|
88906
88978
|
} // no
|
|
88907
88979
|
,
|
|
88908
88980
|
get: function get() {
|
|
88909
|
-
return this.getPrivateField(
|
|
88981
|
+
return this.getPrivateField("rotationSnap");
|
|
88910
88982
|
}
|
|
88911
88983
|
}, {
|
|
88912
88984
|
key: "space",
|
|
88913
88985
|
set: function set(value) {
|
|
88914
|
-
this.setAndDispatch(
|
|
88986
|
+
this.setAndDispatch("space", value);
|
|
88915
88987
|
} // si
|
|
88916
88988
|
,
|
|
88917
88989
|
get: function get() {
|
|
88918
|
-
return this.getPrivateField(
|
|
88990
|
+
return this.getPrivateField("space");
|
|
88919
88991
|
}
|
|
88920
88992
|
}, {
|
|
88921
88993
|
key: "size",
|
|
88922
88994
|
set: function set(value) {
|
|
88923
|
-
this.setAndDispatch(
|
|
88995
|
+
this.setAndDispatch("size", value);
|
|
88924
88996
|
} // si
|
|
88925
88997
|
,
|
|
88926
88998
|
get: function get() {
|
|
88927
|
-
return this.getPrivateField(
|
|
88999
|
+
return this.getPrivateField("size");
|
|
88928
89000
|
}
|
|
88929
89001
|
}, {
|
|
88930
89002
|
key: "dragging",
|
|
88931
89003
|
set: function set(value) {
|
|
88932
|
-
this.setAndDispatch(
|
|
89004
|
+
this.setAndDispatch("dragging", value);
|
|
88933
89005
|
} // si
|
|
88934
89006
|
,
|
|
88935
89007
|
get: function get() {
|
|
88936
|
-
return this.getPrivateField(
|
|
89008
|
+
return this.getPrivateField("dragging");
|
|
88937
89009
|
}
|
|
88938
89010
|
}, {
|
|
88939
89011
|
key: "showX",
|
|
88940
89012
|
set: function set(value) {
|
|
88941
|
-
this.setAndDispatch(
|
|
89013
|
+
this.setAndDispatch("showX", value);
|
|
88942
89014
|
} // si
|
|
88943
89015
|
,
|
|
88944
89016
|
get: function get() {
|
|
88945
|
-
return this.getPrivateField(
|
|
89017
|
+
return this.getPrivateField("showX");
|
|
88946
89018
|
}
|
|
88947
89019
|
}, {
|
|
88948
89020
|
key: "showY",
|
|
88949
89021
|
set: function set(value) {
|
|
88950
|
-
this.setAndDispatch(
|
|
89022
|
+
this.setAndDispatch("showY", value);
|
|
88951
89023
|
} // si
|
|
88952
89024
|
,
|
|
88953
89025
|
get: function get() {
|
|
88954
|
-
return this.getPrivateField(
|
|
89026
|
+
return this.getPrivateField("showY");
|
|
88955
89027
|
}
|
|
88956
89028
|
}, {
|
|
88957
89029
|
key: "showZ",
|
|
88958
89030
|
set: function set(value) {
|
|
88959
|
-
this.setAndDispatch(
|
|
89031
|
+
this.setAndDispatch("showZ", value);
|
|
88960
89032
|
} // si
|
|
88961
89033
|
,
|
|
88962
89034
|
get: function get() {
|
|
88963
|
-
return this.getPrivateField(
|
|
89035
|
+
return this.getPrivateField("showZ");
|
|
88964
89036
|
}
|
|
88965
89037
|
}, {
|
|
88966
89038
|
key: "parentQuaternion",
|
|
88967
89039
|
set: function set(value) {
|
|
88968
|
-
this.setAndDispatch(
|
|
89040
|
+
this.setAndDispatch("parentQuaternion", value);
|
|
88969
89041
|
} // no
|
|
88970
89042
|
,
|
|
88971
89043
|
get: function get() {
|
|
88972
|
-
return this.getPrivateField(
|
|
89044
|
+
return this.getPrivateField("parentQuaternion");
|
|
88973
89045
|
}
|
|
88974
89046
|
}, {
|
|
88975
89047
|
key: "worldPosition",
|
|
88976
89048
|
set: function set(value) {
|
|
88977
|
-
this.setAndDispatch(
|
|
89049
|
+
this.setAndDispatch("worldPosition", value);
|
|
88978
89050
|
} // si
|
|
88979
89051
|
,
|
|
88980
89052
|
get: function get() {
|
|
88981
|
-
return this.getPrivateField(
|
|
89053
|
+
return this.getPrivateField("worldPosition");
|
|
88982
89054
|
}
|
|
88983
89055
|
}, {
|
|
88984
89056
|
key: "worldPositionStart",
|
|
88985
89057
|
set: function set(value) {
|
|
88986
|
-
this.setAndDispatch(
|
|
89058
|
+
this.setAndDispatch("worldPositionStart", value);
|
|
88987
89059
|
} // si
|
|
88988
89060
|
,
|
|
88989
89061
|
get: function get() {
|
|
88990
|
-
return this.getPrivateField(
|
|
89062
|
+
return this.getPrivateField("worldPositionStart");
|
|
88991
89063
|
}
|
|
88992
89064
|
}, {
|
|
88993
89065
|
key: "worldQuaternion",
|
|
88994
89066
|
set: function set(value) {
|
|
88995
|
-
this.setAndDispatch(
|
|
89067
|
+
this.setAndDispatch("worldQuaternion", value);
|
|
88996
89068
|
} // si
|
|
88997
89069
|
,
|
|
88998
89070
|
get: function get() {
|
|
88999
|
-
return this.getPrivateField(
|
|
89071
|
+
return this.getPrivateField("worldQuaternion");
|
|
89000
89072
|
}
|
|
89001
89073
|
}, {
|
|
89002
89074
|
key: "worldQuaternionStart",
|
|
89003
89075
|
set: function set(value) {
|
|
89004
|
-
this.setAndDispatch(
|
|
89076
|
+
this.setAndDispatch("worldQuaternionStart", value);
|
|
89005
89077
|
} // si
|
|
89006
89078
|
,
|
|
89007
89079
|
get: function get() {
|
|
89008
|
-
return this.getPrivateField(
|
|
89080
|
+
return this.getPrivateField("worldQuaternionStart");
|
|
89009
89081
|
}
|
|
89010
89082
|
}, {
|
|
89011
89083
|
key: "cameraPosition",
|
|
89012
89084
|
set: function set(value) {
|
|
89013
|
-
this.setAndDispatch(
|
|
89085
|
+
this.setAndDispatch("cameraPosition", value);
|
|
89014
89086
|
} // si
|
|
89015
89087
|
,
|
|
89016
89088
|
get: function get() {
|
|
89017
|
-
return this.getPrivateField(
|
|
89089
|
+
return this.getPrivateField("cameraPosition");
|
|
89018
89090
|
}
|
|
89019
89091
|
}, {
|
|
89020
89092
|
key: "cameraQuaternion",
|
|
89021
89093
|
set: function set(value) {
|
|
89022
|
-
this.setAndDispatch(
|
|
89094
|
+
this.setAndDispatch("cameraQuaternion", value);
|
|
89023
89095
|
} // si
|
|
89024
89096
|
,
|
|
89025
89097
|
get: function get() {
|
|
89026
|
-
return this.getPrivateField(
|
|
89098
|
+
return this.getPrivateField("cameraQuaternion");
|
|
89027
89099
|
}
|
|
89028
89100
|
}, {
|
|
89029
89101
|
key: "pointStart",
|
|
89030
89102
|
set: function set(value) {
|
|
89031
|
-
this.setAndDispatch(
|
|
89103
|
+
this.setAndDispatch("pointStart", value);
|
|
89032
89104
|
} // no
|
|
89033
89105
|
,
|
|
89034
89106
|
get: function get() {
|
|
89035
|
-
return this.getPrivateField(
|
|
89107
|
+
return this.getPrivateField("pointStart");
|
|
89036
89108
|
}
|
|
89037
89109
|
}, {
|
|
89038
89110
|
key: "pointEnd",
|
|
89039
89111
|
set: function set(value) {
|
|
89040
|
-
this.setAndDispatch(
|
|
89112
|
+
this.setAndDispatch("pointEnd", value);
|
|
89041
89113
|
} // no
|
|
89042
89114
|
,
|
|
89043
89115
|
get: function get() {
|
|
89044
|
-
return this.getPrivateField(
|
|
89116
|
+
return this.getPrivateField("pointEnd");
|
|
89045
89117
|
}
|
|
89046
89118
|
}, {
|
|
89047
89119
|
key: "rotationAxis",
|
|
89048
89120
|
set: function set(value) {
|
|
89049
|
-
this.setAndDispatch(
|
|
89121
|
+
this.setAndDispatch("rotationAxis", value);
|
|
89050
89122
|
} // no
|
|
89051
89123
|
,
|
|
89052
89124
|
get: function get() {
|
|
89053
|
-
return this.getPrivateField(
|
|
89125
|
+
return this.getPrivateField("rotationAxis");
|
|
89054
89126
|
}
|
|
89055
89127
|
}, {
|
|
89056
89128
|
key: "rotationAngle",
|
|
89057
89129
|
set: function set(value) {
|
|
89058
|
-
this.setAndDispatch(
|
|
89130
|
+
this.setAndDispatch("rotationAngle", value);
|
|
89059
89131
|
} // no
|
|
89060
89132
|
,
|
|
89061
89133
|
get: function get() {
|
|
89062
|
-
return this.getPrivateField(
|
|
89134
|
+
return this.getPrivateField("rotationAngle");
|
|
89063
89135
|
}
|
|
89064
89136
|
}, {
|
|
89065
89137
|
key: "eye",
|
|
89066
89138
|
set: function set(value) {
|
|
89067
|
-
this.setAndDispatch(
|
|
89139
|
+
this.setAndDispatch("eye", value);
|
|
89068
89140
|
} // si
|
|
89069
89141
|
,
|
|
89070
89142
|
get: function get() {
|
|
89071
|
-
return this.getPrivateField(
|
|
89143
|
+
return this.getPrivateField("eye");
|
|
89072
89144
|
}
|
|
89073
89145
|
}]);
|
|
89074
89146
|
|
|
@@ -89795,15 +89867,15 @@ var FirstPersonControl = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
89795
89867
|
|
|
89796
89868
|
return FlyControl;
|
|
89797
89869
|
}(EventDispatcher);var CONTROLS = {
|
|
89798
|
-
ORBIT:
|
|
89799
|
-
TRANSFORM:
|
|
89800
|
-
FPS:
|
|
89801
|
-
FLY:
|
|
89870
|
+
ORBIT: "orbit",
|
|
89871
|
+
TRANSFORM: "transform",
|
|
89872
|
+
FPS: "fps",
|
|
89873
|
+
FLY: "fly"
|
|
89802
89874
|
};
|
|
89803
89875
|
var AVAILABLE_CONTROLS = Object.keys(CONTROLS);
|
|
89804
89876
|
var EVENTS = {
|
|
89805
|
-
CHANGE:
|
|
89806
|
-
DRAGGING_CHANGE:
|
|
89877
|
+
CHANGE: "change",
|
|
89878
|
+
DRAGGING_CHANGE: "dragging-changed"
|
|
89807
89879
|
};
|
|
89808
89880
|
var Controls = /*#__PURE__*/function () {
|
|
89809
89881
|
function Controls() {
|
|
@@ -89861,7 +89933,13 @@ var Controls = /*#__PURE__*/function () {
|
|
|
89861
89933
|
}
|
|
89862
89934
|
}, {
|
|
89863
89935
|
key: "setOrbitControl",
|
|
89864
|
-
value: function setOrbitControl() {
|
|
89936
|
+
value: function setOrbitControl(options) {
|
|
89937
|
+
console.warn(DEPRECATIONS.SET_ORBIT_CONTROL);
|
|
89938
|
+
return this.setOrbitControls(options);
|
|
89939
|
+
}
|
|
89940
|
+
}, {
|
|
89941
|
+
key: "setOrbitControls",
|
|
89942
|
+
value: function setOrbitControls() {
|
|
89865
89943
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
89866
89944
|
_ref$target = _ref.target,
|
|
89867
89945
|
target = _ref$target === void 0 ? new Vector3$1() : _ref$target;
|
|
@@ -89874,12 +89952,18 @@ var Controls = /*#__PURE__*/function () {
|
|
|
89874
89952
|
}
|
|
89875
89953
|
}, {
|
|
89876
89954
|
key: "setTransformControl",
|
|
89877
|
-
value: function setTransformControl() {
|
|
89955
|
+
value: function setTransformControl(options) {
|
|
89956
|
+
console.warn(DEPRECATIONS.SET_TRANSFORM_CONTROL);
|
|
89957
|
+
return this.setTransformControls(options);
|
|
89958
|
+
}
|
|
89959
|
+
}, {
|
|
89960
|
+
key: "setTransformControls",
|
|
89961
|
+
value: function setTransformControls() {
|
|
89878
89962
|
var _this4 = this;
|
|
89879
89963
|
|
|
89880
89964
|
this.controls[CONTROLS.TRANSFORM] = new TransformControls(Scene$1.getCameraBody(), Scene$1.getDOMElement());
|
|
89881
89965
|
this.controls[CONTROLS.TRANSFORM].init();
|
|
89882
|
-
this.controls[CONTROLS.TRANSFORM].addEventListener(EVENTS.CHANGE, Scene$1.render);
|
|
89966
|
+
this.controls[CONTROLS.TRANSFORM].addEventListener(EVENTS.CHANGE, Scene$1.render.bind(Scene$1));
|
|
89883
89967
|
this.controls[CONTROLS.TRANSFORM].addEventListener(EVENTS.DRAGGING_CHANGE, function (event) {
|
|
89884
89968
|
if (_this4.controls[CONTROLS.ORBIT]) {
|
|
89885
89969
|
_this4.controls[CONTROLS.ORBIT].enabled = !event.value;
|
|
@@ -89890,13 +89974,25 @@ var Controls = /*#__PURE__*/function () {
|
|
|
89890
89974
|
}, {
|
|
89891
89975
|
key: "setFirstPersonControl",
|
|
89892
89976
|
value: function setFirstPersonControl(options) {
|
|
89977
|
+
console.warn(DEPRECATIONS.SET_FIRST_PERSON_CONTROL);
|
|
89978
|
+
return this.setFirstPersonControls(options);
|
|
89979
|
+
}
|
|
89980
|
+
}, {
|
|
89981
|
+
key: "setFirstPersonControls",
|
|
89982
|
+
value: function setFirstPersonControls(options) {
|
|
89893
89983
|
this.controls[CONTROLS.FPS] = new FirstPersonControl(Scene$1.getCamera(), Scene$1.getDOMElement(), options);
|
|
89894
89984
|
this.controls[CONTROLS.FPS].init();
|
|
89895
89985
|
return this.controls[CONTROLS.FPS];
|
|
89896
89986
|
}
|
|
89897
89987
|
}, {
|
|
89898
89988
|
key: "setFlyControl",
|
|
89899
|
-
value: function setFlyControl() {
|
|
89989
|
+
value: function setFlyControl(options) {
|
|
89990
|
+
console.warn(DEPRECATIONS.SET_FLY_CONTROL);
|
|
89991
|
+
return this.setFlyControls(options);
|
|
89992
|
+
}
|
|
89993
|
+
}, {
|
|
89994
|
+
key: "setFlyControls",
|
|
89995
|
+
value: function setFlyControls() {
|
|
89900
89996
|
this.controls[CONTROLS.FLY] = new FlyControl(Scene$1.getCameraBody(), Scene$1.getDOMElement());
|
|
89901
89997
|
this.controls[CONTROLS.FLY].init();
|
|
89902
89998
|
return this.controls[CONTROLS.FLY];
|
|
@@ -91273,8 +91369,8 @@ var DEFAULT_MAP_SIZE = 2048;
|
|
|
91273
91369
|
var DEFAULT_BIAS = -0.0001;
|
|
91274
91370
|
var WHITE = 0xffffff;
|
|
91275
91371
|
var GREEN$1 = 0x2ecc71;
|
|
91276
|
-
var DEFAULT_SPOTLIGHT_ANGLE = .32;
|
|
91277
|
-
var DEFAULT_SPOTLIGHT_PENUMBRA = .5;
|
|
91372
|
+
var DEFAULT_SPOTLIGHT_ANGLE = 0.32;
|
|
91373
|
+
var DEFAULT_SPOTLIGHT_PENUMBRA = 0.5;
|
|
91278
91374
|
var DEFAULT_SPOTLIGHT_DECAY = 2;
|
|
91279
91375
|
|
|
91280
91376
|
var SpotLight = /*#__PURE__*/function (_Light) {
|
|
@@ -91294,7 +91390,7 @@ var SpotLight = /*#__PURE__*/function (_Light) {
|
|
|
91294
91390
|
_options$intensity = options.intensity,
|
|
91295
91391
|
intensity = _options$intensity === void 0 ? DEFAULT_INTENSITY$1 : _options$intensity,
|
|
91296
91392
|
_options$name = options.name,
|
|
91297
|
-
name = _options$name === void 0 ? generateRandomName(
|
|
91393
|
+
name = _options$name === void 0 ? generateRandomName("SpotLight") : _options$name,
|
|
91298
91394
|
_options$distance = options.distance,
|
|
91299
91395
|
distance = _options$distance === void 0 ? DEFAULT_FAR : _options$distance,
|
|
91300
91396
|
_options$angle = options.angle,
|
|
@@ -91327,19 +91423,9 @@ var SpotLight = /*#__PURE__*/function (_Light) {
|
|
|
91327
91423
|
}
|
|
91328
91424
|
|
|
91329
91425
|
_createClass(SpotLight, [{
|
|
91330
|
-
key: "
|
|
91331
|
-
value: function
|
|
91332
|
-
|
|
91333
|
-
var material = new MeshBasicMaterial({
|
|
91334
|
-
color: 0xeeeeee,
|
|
91335
|
-
wireframe: true
|
|
91336
|
-
});
|
|
91337
|
-
var target = new Element$1({
|
|
91338
|
-
geometry: geometry,
|
|
91339
|
-
material: material
|
|
91340
|
-
});
|
|
91341
|
-
target.position(initialPosition);
|
|
91342
|
-
return target;
|
|
91426
|
+
key: "hasTarget",
|
|
91427
|
+
value: function hasTarget() {
|
|
91428
|
+
return true;
|
|
91343
91429
|
}
|
|
91344
91430
|
}, {
|
|
91345
91431
|
key: "setLight",
|
|
@@ -91428,13 +91514,25 @@ var SpotLight = /*#__PURE__*/function (_Light) {
|
|
|
91428
91514
|
return this.target;
|
|
91429
91515
|
}
|
|
91430
91516
|
}, {
|
|
91431
|
-
key: "
|
|
91432
|
-
value: function
|
|
91433
|
-
|
|
91434
|
-
|
|
91517
|
+
key: "addHelpers",
|
|
91518
|
+
value: function addHelpers() {
|
|
91519
|
+
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
91520
|
+
_ref2$holderName = _ref2.holderName,
|
|
91521
|
+
holderName = _ref2$holderName === void 0 ? "spotlightholder" : _ref2$holderName,
|
|
91522
|
+
_ref2$holderSize = _ref2.holderSize,
|
|
91523
|
+
holderSize = _ref2$holderSize === void 0 ? 0.05 : _ref2$holderSize,
|
|
91524
|
+
_ref2$targetHolderNam = _ref2.targetHolderName,
|
|
91525
|
+
targetHolderName = _ref2$targetHolderNam === void 0 ? "targetholder" : _ref2$targetHolderNam,
|
|
91526
|
+
_ref2$targetHolderSiz = _ref2.targetHolderSize,
|
|
91527
|
+
targetHolderSize = _ref2$targetHolderSiz === void 0 ? 0.05 : _ref2$targetHolderSiz;
|
|
91528
|
+
|
|
91529
|
+
this.helper = new SpotLightHelper(this.getBody(), GREEN$1);
|
|
91530
|
+
this.shadowHelper = new CameraHelper(this.getBody().shadow.camera);
|
|
91435
91531
|
Scene$1.add(this.helper, null, false);
|
|
91436
91532
|
Scene$1.add(this.shadowHelper, null, false);
|
|
91437
|
-
this.addHolder();
|
|
91533
|
+
this.addHolder(holderName, holderSize);
|
|
91534
|
+
this.addTargetHolder(targetHolderName, targetHolderSize);
|
|
91535
|
+
this.isUsingHelper = true;
|
|
91438
91536
|
}
|
|
91439
91537
|
}, {
|
|
91440
91538
|
key: "hasTarget",
|
|
@@ -91446,7 +91544,7 @@ var SpotLight = /*#__PURE__*/function (_Light) {
|
|
|
91446
91544
|
value: function update(dt) {
|
|
91447
91545
|
_get(_getPrototypeOf(SpotLight.prototype), "update", this).call(this, dt);
|
|
91448
91546
|
|
|
91449
|
-
if (this.
|
|
91547
|
+
if (this.usingHelper()) {
|
|
91450
91548
|
this.helper.update();
|
|
91451
91549
|
this.shadowHelper.update();
|
|
91452
91550
|
}
|
|
@@ -91485,7 +91583,7 @@ var HemisphereLight = /*#__PURE__*/function (_Light) {
|
|
|
91485
91583
|
_options$intensity = options.intensity,
|
|
91486
91584
|
intensity = _options$intensity === void 0 ? DEFAULT_INTENSITY : _options$intensity,
|
|
91487
91585
|
_options$name = options.name,
|
|
91488
|
-
name = _options$name === void 0 ? generateRandomName(
|
|
91586
|
+
name = _options$name === void 0 ? generateRandomName("HemisphereLight") : _options$name;
|
|
91489
91587
|
_this = _super.call(this, {
|
|
91490
91588
|
color: color,
|
|
91491
91589
|
intensity: intensity,
|
|
@@ -91536,11 +91634,30 @@ var HemisphereLight = /*#__PURE__*/function (_Light) {
|
|
|
91536
91634
|
}
|
|
91537
91635
|
}
|
|
91538
91636
|
}, {
|
|
91539
|
-
key: "
|
|
91540
|
-
value: function
|
|
91541
|
-
|
|
91637
|
+
key: "addHelpers",
|
|
91638
|
+
value: function addHelpers() {
|
|
91639
|
+
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
91640
|
+
_ref2$holderName = _ref2.holderName,
|
|
91641
|
+
holderName = _ref2$holderName === void 0 ? "hemispherelightholder" : _ref2$holderName,
|
|
91642
|
+
_ref2$holderSize = _ref2.holderSize,
|
|
91643
|
+
holderSize = _ref2$holderSize === void 0 ? 0.05 : _ref2$holderSize;
|
|
91644
|
+
|
|
91645
|
+
this.helper = new HemisphereLightHelper(this.getBody(), 2, GREEN);
|
|
91646
|
+
this.addHolder(holderName, holderSize);
|
|
91647
|
+
this.isUsingHelper = true;
|
|
91542
91648
|
Scene$1.add(this.helper, null, false);
|
|
91543
91649
|
}
|
|
91650
|
+
}, {
|
|
91651
|
+
key: "update",
|
|
91652
|
+
value: function update(dt) {
|
|
91653
|
+
_get(_getPrototypeOf(HemisphereLight.prototype), "update", this).call(this, dt);
|
|
91654
|
+
|
|
91655
|
+
if (this.usingHelper()) {
|
|
91656
|
+
this.setPosition(this.holder.getPosition(), {
|
|
91657
|
+
updateHolder: false
|
|
91658
|
+
});
|
|
91659
|
+
}
|
|
91660
|
+
}
|
|
91544
91661
|
}]);
|
|
91545
91662
|
|
|
91546
91663
|
return HemisphereLight;
|