rhodonite 0.4.2 → 0.5.2
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/VERSION-FILE +2 -2
- package/dist/esm/effekseer/EffekseerComponent.d.ts +52 -45
- package/dist/esm/effekseer/main.d.ts +6 -6
- package/dist/esm/foundation/cameras/AbstractCameraController.d.ts +14 -14
- package/dist/esm/foundation/cameras/ICameraController.d.ts +9 -9
- package/dist/esm/foundation/cameras/OrbitCameraController.d.ts +128 -123
- package/dist/esm/foundation/cameras/WalkThroughCameraController.d.ts +75 -75
- package/dist/esm/foundation/components/AnimationComponent.d.ts +81 -94
- package/dist/esm/foundation/components/BlendShapeComponent.d.ts +14 -14
- package/dist/esm/foundation/components/CameraComponent.d.ts +116 -116
- package/dist/esm/foundation/components/CameraControllerComponent.d.ts +16 -16
- package/dist/esm/foundation/components/LightComponent.d.ts +28 -28
- package/dist/esm/foundation/components/MeshComponent.d.ts +50 -50
- package/dist/esm/foundation/components/MeshRendererComponent.d.ts +57 -57
- package/dist/esm/foundation/components/PhysicsComponent.d.ts +12 -12
- package/dist/esm/foundation/components/SceneGraphComponent.d.ts +114 -81
- package/dist/esm/foundation/components/SkeletalComponent.d.ts +50 -50
- package/dist/esm/foundation/components/TransformComponent.d.ts +91 -91
- package/dist/esm/foundation/components/WellKnownComponentTIDs.d.ts +16 -16
- package/dist/esm/foundation/core/Component.d.ts +216 -216
- package/dist/esm/foundation/core/ComponentRepository.d.ts +59 -59
- package/dist/esm/foundation/core/Config.d.ts +20 -19
- package/dist/esm/foundation/core/Entity.d.ts +84 -84
- package/dist/esm/foundation/core/EntityRepository.d.ts +62 -62
- package/dist/esm/foundation/core/GlobalDataRepository.d.ts +32 -31
- package/dist/esm/foundation/core/MemoryManager.d.ts +29 -29
- package/dist/esm/foundation/core/RnObject.d.ts +96 -96
- package/dist/esm/foundation/definitions/AlphaMode.d.ts +15 -15
- package/dist/esm/foundation/definitions/AnimationAttribute.d.ts +13 -13
- package/dist/esm/foundation/definitions/AnimationInterpolation.d.ts +12 -12
- package/dist/esm/foundation/definitions/BasisCompressionType.d.ts +26 -26
- package/dist/esm/foundation/definitions/BoneDataType.d.ts +13 -13
- package/dist/esm/foundation/definitions/BufferUse.d.ts +13 -13
- package/dist/esm/foundation/definitions/CameraControllerType.d.ts +11 -11
- package/dist/esm/foundation/definitions/CameraType.d.ts +12 -12
- package/dist/esm/foundation/definitions/ComponentType.d.ts +32 -32
- package/dist/esm/foundation/definitions/CompositionType.d.ts +39 -38
- package/dist/esm/foundation/definitions/CompressionTextureType.d.ts +48 -48
- package/dist/esm/foundation/definitions/FileType.d.ts +17 -17
- package/dist/esm/foundation/definitions/GpuState.d.ts +10 -10
- package/dist/esm/foundation/definitions/HdriFormat.d.ts +10 -10
- package/dist/esm/foundation/definitions/LightType.d.ts +13 -13
- package/dist/esm/foundation/definitions/PixelFormat.d.ts +10 -10
- package/dist/esm/foundation/definitions/PrimitiveMode.d.ts +15 -15
- package/dist/esm/foundation/definitions/ProcessApproach.d.ts +19 -19
- package/dist/esm/foundation/definitions/ProcessStage.d.ts +18 -18
- package/dist/esm/foundation/definitions/RenderBufferTarget.d.ts +27 -27
- package/dist/esm/foundation/definitions/ShaderNode.d.ts +11 -11
- package/dist/esm/foundation/definitions/ShaderSemantics.d.ts +119 -119
- package/dist/esm/foundation/definitions/ShaderType.d.ts +13 -13
- package/dist/esm/foundation/definitions/ShaderVariableType.d.ts +11 -11
- package/dist/esm/foundation/definitions/ShaderVariableUpdateInterval.d.ts +12 -12
- package/dist/esm/foundation/definitions/ShadingModel.d.ts +12 -12
- package/dist/esm/foundation/definitions/ShadowMap.d.ts +11 -11
- package/dist/esm/foundation/definitions/TextureParameter.d.ts +37 -37
- package/dist/esm/foundation/definitions/VertexAttribute.d.ts +38 -38
- package/dist/esm/foundation/definitions/visibility.d.ts +12 -12
- package/dist/esm/foundation/enhanced_js_objects/Array.d.ts +15 -15
- package/dist/esm/foundation/exporter/Gltf2Exporter.d.ts +27 -22
- package/dist/esm/foundation/geometry/Frustum.d.ts +37 -37
- package/dist/esm/foundation/geometry/Mesh.d.ts +148 -124
- package/dist/esm/foundation/geometry/Plane.d.ts +30 -26
- package/dist/esm/foundation/geometry/Primitive.d.ts +78 -78
- package/dist/esm/foundation/geometry/Sphere.d.ts +12 -12
- package/dist/esm/foundation/gizmos/AABBGizmo.d.ts +29 -10
- package/dist/esm/foundation/gizmos/Gizmo.d.ts +39 -16
- package/dist/esm/foundation/gizmos/LocatorGizmo.d.ts +28 -0
- package/dist/esm/foundation/helpers/EntityHelper.d.ts +11 -11
- package/dist/esm/foundation/helpers/MaterialHelper.d.ts +173 -167
- package/dist/esm/foundation/helpers/MeshHelper.d.ts +4 -4
- package/dist/esm/foundation/helpers/RenderableHelper.d.ts +18 -18
- package/dist/esm/foundation/importer/AnimationAssigner.d.ts +16 -16
- package/dist/esm/foundation/importer/DrcPointCloudImporter.d.ts +69 -69
- package/dist/esm/foundation/importer/FormatDetector.d.ts +5 -5
- package/dist/esm/foundation/importer/Gltf1Importer.d.ts +45 -45
- package/dist/esm/foundation/importer/Gltf2Importer.d.ts +46 -46
- package/dist/esm/foundation/importer/GltfImporter.d.ts +57 -57
- package/dist/esm/foundation/importer/ILoaderExtension.d.ts +11 -11
- package/dist/esm/foundation/importer/ModelConverter.d.ts +78 -78
- package/dist/esm/foundation/importer/RhodoniteImportExtension.d.ts +9 -9
- package/dist/esm/foundation/importer/VRMImporter.d.ts +15 -15
- package/dist/esm/foundation/materials/core/AbstractMaterialNode.d.ts +124 -124
- package/dist/esm/foundation/materials/core/AbstractShaderNode.d.ts +33 -33
- package/dist/esm/foundation/materials/core/Material.d.ts +181 -149
- package/dist/esm/foundation/materials/core/ShaderGraphResolver.d.ts +16 -16
- package/dist/esm/foundation/materials/core/ShaderityUtility.d.ts +30 -32
- package/dist/esm/foundation/materials/nodes/AddShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/AttributeNormalShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/AttributePositionShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/BlockBeginShaderNode.d.ts +9 -9
- package/dist/esm/foundation/materials/nodes/BlockEndShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/DotProductShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/GreaterShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/IfStatementShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/MultiplyShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/NormalMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/NormalizeShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/OutColorShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/OutPositionShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ProjectionMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/TextureFetchMaterialNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/UniformDataShaderNode.d.ts +8 -8
- package/dist/esm/foundation/materials/nodes/VaryingInVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/VaryingOutVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/Vector3AndScalarToVector4ShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ViewMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/WireframeMaterialNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/WorldMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/singles/ClassicShadingSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/ColorGradingUsingLUTsSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/CustomSingleMaterialNode.d.ts +30 -31
- package/dist/esm/foundation/materials/singles/DepthEncodeSingleMaterialNode.d.ts +20 -20
- package/dist/esm/foundation/materials/singles/DetectHighLuminanceSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/EntityUIDOutputSingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/EnvConstantSingleMaterialNode.d.ts +14 -14
- package/dist/esm/foundation/materials/singles/FXAA3QualitySingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/FurnaceTestSingleMaterialNode.d.ts +17 -17
- package/dist/esm/foundation/materials/singles/GammaCorrectionSingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/GaussianBlurForEncodedDepthSingleMaterialNode.d.ts +27 -27
- package/dist/esm/foundation/materials/singles/GaussianBlurSingleMaterialNode.d.ts +27 -27
- package/dist/esm/foundation/materials/singles/MToonSingleMaterialNode.d.ts +52 -52
- package/dist/esm/foundation/materials/singles/MatCapSingleMaterialNode.d.ts +14 -14
- package/dist/esm/foundation/materials/singles/PbrExtendedShadingSingleMaterialNode.d.ts +29 -29
- package/dist/esm/foundation/materials/singles/PbrShadingSingleMaterialNode.d.ts +36 -36
- package/dist/esm/foundation/materials/singles/ShaderitySingleMaterialNode.d.ts +17 -0
- package/dist/esm/foundation/materials/singles/ShadowMapDecodeClassicSingleMaterialNode.d.ts +41 -41
- package/dist/esm/foundation/materials/singles/SkinPbrShadingSingleMaterialNode.d.ts +26 -26
- package/dist/esm/foundation/materials/singles/SynthesizeHDRSingleMaterialNode.d.ts +39 -39
- package/dist/esm/foundation/materials/singles/VarianceShadowMapDecodeClassicSingleMaterialNode.d.ts +52 -52
- package/dist/esm/foundation/math/AABB.d.ts +34 -34
- package/dist/esm/foundation/math/AbstractMathNumber.d.ts +6 -6
- package/dist/esm/foundation/math/AbstractMatrix.d.ts +14 -14
- package/dist/esm/foundation/math/AbstractQuaternion.d.ts +25 -25
- package/dist/esm/foundation/math/AbstractVector.d.ts +21 -21
- package/dist/esm/foundation/math/ColorRgb.d.ts +26 -27
- package/dist/esm/foundation/math/ColorRgba.d.ts +25 -25
- package/dist/esm/foundation/math/IColor.d.ts +64 -64
- package/dist/esm/foundation/math/IMathNumber.d.ts +3 -3
- package/dist/esm/foundation/math/IMatrix.d.ts +226 -226
- package/dist/esm/foundation/math/IQuaternion.d.ts +64 -64
- package/dist/esm/foundation/math/IVector.d.ts +209 -209
- package/dist/esm/foundation/math/IdentityMatrix33.d.ts +40 -40
- package/dist/esm/foundation/math/IdentityMatrix44.d.ts +45 -45
- package/dist/esm/foundation/math/ImageUtil.d.ts +19 -19
- package/dist/esm/foundation/math/LogQuaternion.d.ts +12 -12
- package/dist/esm/foundation/math/MathClassUtil.d.ts +37 -37
- package/dist/esm/foundation/math/MathUtil.d.ts +55 -55
- package/dist/esm/foundation/math/Matrix22.d.ts +69 -69
- package/dist/esm/foundation/math/Matrix33.d.ts +86 -86
- package/dist/esm/foundation/math/Matrix44.d.ts +122 -122
- package/dist/esm/foundation/math/MutableColorRgb.d.ts +32 -33
- package/dist/esm/foundation/math/MutableColorRgba.d.ts +33 -33
- package/dist/esm/foundation/math/MutableMatrix22.d.ts +80 -80
- package/dist/esm/foundation/math/MutableMatrix33.d.ts +110 -110
- package/dist/esm/foundation/math/MutableMatrix44.d.ts +149 -149
- package/dist/esm/foundation/math/MutableQuaternion.d.ts +48 -48
- package/dist/esm/foundation/math/MutableScalar.d.ts +34 -34
- package/dist/esm/foundation/math/MutableVector2.d.ts +80 -75
- package/dist/esm/foundation/math/MutableVector3.d.ts +98 -94
- package/dist/esm/foundation/math/MutableVector4.d.ts +87 -85
- package/dist/esm/foundation/math/Quaternion.d.ts +53 -51
- package/dist/esm/foundation/math/Scalar.d.ts +40 -36
- package/dist/esm/foundation/math/Vector2.d.ts +140 -126
- package/dist/esm/foundation/math/Vector3.d.ts +166 -150
- package/dist/esm/foundation/math/Vector4.d.ts +146 -146
- package/dist/esm/foundation/math/VectorN.d.ts +5 -5
- package/dist/esm/foundation/math/raw/raw_extension.d.ts +59 -23
- package/dist/esm/foundation/memory/Accessor.d.ts +182 -182
- package/dist/esm/foundation/memory/Buffer.d.ts +37 -37
- package/dist/esm/foundation/memory/BufferView.d.ts +60 -60
- package/dist/esm/foundation/misc/Cache.d.ts +19 -0
- package/dist/esm/foundation/misc/DataUtil.d.ts +42 -38
- package/dist/esm/foundation/misc/EnumIO.d.ts +33 -33
- package/dist/esm/foundation/misc/Is.d.ts +26 -26
- package/dist/esm/foundation/misc/ManualCache.d.ts +30 -0
- package/dist/esm/foundation/misc/MiscUtil.d.ts +37 -30
- package/dist/esm/foundation/misc/Option.d.ts +72 -72
- package/dist/esm/foundation/misc/Result.d.ts +40 -40
- package/dist/esm/foundation/misc/RnPromise.d.ts +27 -27
- package/dist/esm/foundation/misc/Time.d.ts +16 -16
- package/dist/esm/foundation/physics/PhysicsStrategy.d.ts +2 -2
- package/dist/esm/foundation/physics/SphereCollider.d.ts +5 -5
- package/dist/esm/foundation/physics/VRMColliderGroup.d.ts +6 -6
- package/dist/esm/foundation/physics/VRMSpringBoneGroup.d.ts +14 -14
- package/dist/esm/foundation/physics/VRMSpringBonePhysicsStrategy.d.ts +39 -39
- package/dist/esm/foundation/renderer/CGAPIResourceRepository.d.ts +5 -5
- package/dist/esm/foundation/renderer/Expression.d.ts +21 -21
- package/dist/esm/foundation/renderer/FrameBuffer.d.ts +32 -32
- package/dist/esm/foundation/renderer/RenderPass.d.ts +113 -115
- package/dist/esm/foundation/system/EventPubSub.d.ts +19 -19
- package/dist/esm/foundation/system/ModuleManager.d.ts +10 -10
- package/dist/esm/foundation/system/System.d.ts +23 -23
- package/dist/esm/foundation/system/SystemState.d.ts +4 -4
- package/dist/esm/foundation/textures/AbstractTexture.d.ts +60 -60
- package/dist/esm/foundation/textures/CubeTexture.d.ts +33 -33
- package/dist/esm/foundation/textures/IRenderable.d.ts +10 -10
- package/dist/esm/foundation/textures/RenderBuffer.d.ts +23 -23
- package/dist/esm/foundation/textures/RenderTargetTexture.d.ts +39 -39
- package/dist/esm/foundation/textures/Texture.d.ts +90 -90
- package/dist/esm/foundation/textures/TextureDataFloat.d.ts +20 -18
- package/dist/esm/foundation/textures/VideoTexture.d.ts +63 -63
- package/dist/esm/index.d.ts +927 -917
- package/dist/esm/index.js +44596 -41597
- package/dist/esm/pbr/main.d.ts +5 -5
- package/dist/esm/sparkgear/SparkGearComponent.d.ts +54 -54
- package/dist/esm/sparkgear/main.d.ts +6 -6
- package/dist/esm/types/BasisTexture.d.ts +23 -23
- package/dist/esm/types/CommonTypes.d.ts +33 -29
- package/dist/esm/types/KTX2Texture.d.ts +67 -67
- package/dist/esm/types/RnM2.d.ts +329 -329
- package/dist/esm/types/TypeConverter.d.ts +1 -1
- package/dist/esm/types/TypeGenerators.d.ts +4 -4
- package/dist/esm/types/VRM.d.ts +160 -160
- package/dist/esm/types/glTF.d.ts +387 -385
- package/dist/esm/types/glTF1.d.ts +88 -88
- package/dist/esm/types/glTF2.d.ts +391 -338
- package/dist/esm/webgl/WebGLContextWrapper.d.ts +99 -99
- package/dist/esm/webgl/WebGLExtendedTypes.d.ts +14 -9
- package/dist/esm/webgl/WebGLExtension.d.ts +24 -24
- package/dist/esm/webgl/WebGLResourceRepository.d.ts +351 -221
- package/dist/esm/webgl/WebGLStrategy.d.ts +27 -22
- package/dist/esm/webgl/WebGLStrategyCommonMethod.d.ts +54 -30
- package/dist/esm/webgl/WebGLStrategyFastest.d.ts +54 -51
- package/dist/esm/webgl/WebGLStrategyUniform.d.ts +44 -40
- package/dist/esm/webgl/getRenderingStrategy.d.ts +4 -4
- package/dist/esm/webgl/main.d.ts +17 -17
- package/dist/esm/webgl/shaders/GLSLShader.d.ts +48 -48
- package/dist/esm/webgl/shaders/nodes/BlockBeginShader.d.ts +16 -16
- package/dist/esm/webgl/shaders/nodes/BlockEndShader.d.ts +16 -16
- package/dist/esm/webgl/shaders/nodes/ClassicShadingShader.d.ts +17 -17
- package/dist/esm/webgl/shaders/nodes/ConstantVariableShader.d.ts +18 -18
- package/dist/esm/webgl/shaders/nodes/EndShader.d.ts +17 -17
- package/dist/esm/webgl/shaders/nodes/IfStatementShader.d.ts +12 -12
- package/dist/esm/webgl/shaders/nodes/TextureFetchShader.d.ts +18 -18
- package/dist/esm/webgl/shaders/nodes/UniformDataShader.d.ts +20 -20
- package/dist/esm/webgl/shaders/nodes/VaryingVariableShader.d.ts +18 -18
- package/dist/esm/webgl/textureLoader/KTX2TextureLoader.d.ts +21 -21
- package/dist/esm/xr/WebVRSystem.d.ts +55 -55
- package/dist/esm/xr/WebXRInput.d.ts +18 -18
- package/dist/esm/xr/WebXRSystem.d.ts +136 -136
- package/dist/esm/xr/main.d.ts +8 -8
- package/package.json +5 -7
- package/dist/VERSION-FILE +0 -2
- package/dist/esm/foundation/components/MeshComponent.test.d.ts +0 -1
- package/dist/esm/foundation/components/SceneGraphComponent.test.d.ts +0 -1
- package/dist/esm/foundation/components/TransformComponent.test.d.ts +0 -1
- package/dist/esm/foundation/core/Entity.test.d.ts +0 -1
- package/dist/esm/foundation/core/EntityRepository.test.d.ts +0 -1
- package/dist/esm/foundation/core/RnObject.test.d.ts +0 -1
- package/dist/esm/foundation/definitions/ShaderVariableTyoe.d.ts +0 -11
- package/dist/esm/foundation/enhanced_js_objects/Array.test.d.ts +0 -5
- package/dist/esm/foundation/geometry/Mesh.test.d.ts +0 -1
- package/dist/esm/foundation/importer/VRizeGltfLoaderExtension.d.ts +0 -21
- package/dist/esm/foundation/materials/core/Material.test.d.ts +0 -1
- package/dist/esm/foundation/materials/core/ShaderityUtility.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/AddShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/VaryingVariableShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/singles/VRizeClassicShadingSingleMaterialNode.d.ts +0 -24
- package/dist/esm/foundation/materials/singles/VRizePbrShadingSingleMaterialNode.d.ts +0 -28
- package/dist/esm/foundation/math/AABB.test.d.ts +0 -1
- package/dist/esm/foundation/math/IdentityMatrix33.test.d.ts +0 -1
- package/dist/esm/foundation/math/IdentityMatrix44.test.d.ts +0 -1
- package/dist/esm/foundation/math/Matrix44.test.d.ts +0 -1
- package/dist/esm/foundation/math/MutableMatrix44..test.d.ts +0 -1
- package/dist/esm/foundation/math/MutableVector4.test.d.ts +0 -1
- package/dist/esm/foundation/math/Vector4.test.d.ts +0 -1
- package/dist/esm/foundation/memory/Accessor.test.d.ts +0 -1
- package/dist/esm/foundation/memory/Buffer.test.d.ts +0 -1
- package/dist/esm/foundation/memory/BufferView.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Is.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Option.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Result.test.d.ts +0 -1
- package/dist/esm/foundation/misc/RnPromise.test.d.ts +0 -1
- package/dist/esm/foundation/renderer/RenderPass.test.d.ts +0 -1
- package/dist/esm/foundation/system/EventPubSub.test.d.ts +0 -1
- package/dist/esm/rhodonite-xr.d.ts +0 -8
- package/dist/esm/types/Option.d.ts +0 -68
- package/dist/esm/types/Option.test.d.ts +0 -1
- package/dist/esm/types/Result.d.ts +0 -32
- package/dist/esm/webgl/WebGLResourceRepository.test.d.ts +0 -1
|
@@ -1,94 +1,81 @@
|
|
|
1
|
-
import Component from '../core/Component';
|
|
2
|
-
import EntityRepository from '../core/EntityRepository';
|
|
3
|
-
import { AnimationInterpolationEnum } from '../definitions/AnimationInterpolation';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
name: AnimationName;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
private
|
|
32
|
-
private
|
|
33
|
-
private
|
|
34
|
-
static
|
|
35
|
-
private
|
|
36
|
-
private
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
static
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
static
|
|
61
|
-
static
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
static get endInputValue(): number;
|
|
83
|
-
static get isAnimating(): boolean;
|
|
84
|
-
setAnimating(flg: boolean): void;
|
|
85
|
-
static setAnimatingForAll(flg: boolean): void;
|
|
86
|
-
get isAnimating(): boolean;
|
|
87
|
-
setAnimationToRest(): void;
|
|
88
|
-
private restoreDefaultValues;
|
|
89
|
-
private backupDefaultValues;
|
|
90
|
-
static getAnimationList(): string[];
|
|
91
|
-
$create(): void;
|
|
92
|
-
$logic(): void;
|
|
93
|
-
}
|
|
94
|
-
export {};
|
|
1
|
+
import Component from '../core/Component';
|
|
2
|
+
import EntityRepository from '../core/EntityRepository';
|
|
3
|
+
import { AnimationInterpolationEnum } from '../definitions/AnimationInterpolation';
|
|
4
|
+
import { ComponentTID, ComponentSID, EntityUID, Index, TypedArray as Float32Array, AnimationAttributeType } from '../../types/CommonTypes';
|
|
5
|
+
import { EventHandler } from '../system/EventPubSub';
|
|
6
|
+
export declare type AnimationName = string;
|
|
7
|
+
declare type TimeInSec = number;
|
|
8
|
+
export interface AnimationInfo {
|
|
9
|
+
name: AnimationName;
|
|
10
|
+
maxStartInputTime: TimeInSec;
|
|
11
|
+
maxEndInputTime: TimeInSec;
|
|
12
|
+
}
|
|
13
|
+
interface AnimationLine {
|
|
14
|
+
name: AnimationName;
|
|
15
|
+
input: Float32Array;
|
|
16
|
+
output: Float32Array;
|
|
17
|
+
outputAttributeName: AnimationAttributeType;
|
|
18
|
+
outputComponentN: number;
|
|
19
|
+
interpolationMethod: AnimationInterpolationEnum;
|
|
20
|
+
targetEntityUid?: EntityUID;
|
|
21
|
+
}
|
|
22
|
+
export interface ChangeAnimationInfoEvent {
|
|
23
|
+
infoMap: Map<AnimationName, AnimationInfo>;
|
|
24
|
+
}
|
|
25
|
+
declare type AnimationComponentEventType = symbol;
|
|
26
|
+
export default class AnimationComponent extends Component {
|
|
27
|
+
private __backupDefaultValues;
|
|
28
|
+
private __currentActiveAnimationName?;
|
|
29
|
+
private __animationData;
|
|
30
|
+
static globalTime: number;
|
|
31
|
+
private __isAnimating;
|
|
32
|
+
private __transformComponent?;
|
|
33
|
+
private __meshComponent?;
|
|
34
|
+
private static __componentRepository;
|
|
35
|
+
private static __animationInfo;
|
|
36
|
+
private static __pubsub;
|
|
37
|
+
static Event: {
|
|
38
|
+
ChangeAnimationInfo: symbol;
|
|
39
|
+
PlayEnd: symbol;
|
|
40
|
+
};
|
|
41
|
+
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
42
|
+
static get componentTID(): ComponentTID;
|
|
43
|
+
static setActiveAnimationForAll(animationName: AnimationName): void;
|
|
44
|
+
setActiveAnimation(animationName: AnimationName): boolean;
|
|
45
|
+
setAnimation(animationName: string, attributeName: AnimationAttributeType, animationInputArray: Float32Array, animationOutputArray: Float32Array, outputComponentN: number, interpolation: AnimationInterpolationEnum, makeThisActiveAnimation?: boolean): void;
|
|
46
|
+
static subscribe(type: AnimationComponentEventType, handler: EventHandler): void;
|
|
47
|
+
static lerp(data_: Float32Array, ratio: number, animationAttributeIndex: Index, i: Index, outputComponentN: number): number[];
|
|
48
|
+
/**
|
|
49
|
+
* Compute cubic spline interpolation.
|
|
50
|
+
* @param p_0 starting point
|
|
51
|
+
* @param p_1 ending point
|
|
52
|
+
* @param m_0 inTangent
|
|
53
|
+
* @param m_1 outTangent
|
|
54
|
+
* @param t ratio
|
|
55
|
+
* @param animationAttributeIndex index of attribution
|
|
56
|
+
*/
|
|
57
|
+
static cubicSpline(p0: Array<number>, p1: Array<number>, m0: Array<number>, m1: Array<number>, t: number): Array<number>;
|
|
58
|
+
private static __isClamped;
|
|
59
|
+
static binarySearch(inputArray: Float32Array, currentTime: number): number;
|
|
60
|
+
static interpolationSearch(inputArray: Float32Array, currentTime: number): number;
|
|
61
|
+
static bruteForceSearch(inputArray: Float32Array, currentTime: number): number;
|
|
62
|
+
private static __getOutputValue;
|
|
63
|
+
static interpolate(line: AnimationLine, currentTime: number, animationAttributeIndex: Index): Array<number>;
|
|
64
|
+
private static __prepareVariablesForCubicSpline;
|
|
65
|
+
getStartInputValueOfAnimation(animationName?: string): number;
|
|
66
|
+
getEndInputValueOfAnimation(animationName?: string): number;
|
|
67
|
+
static getAnimationInfo(): Map<string, AnimationInfo>;
|
|
68
|
+
static get startInputValue(): number;
|
|
69
|
+
static get endInputValue(): number;
|
|
70
|
+
static get isAnimating(): boolean;
|
|
71
|
+
setAnimating(flg: boolean): void;
|
|
72
|
+
static setAnimatingForAll(flg: boolean): void;
|
|
73
|
+
get isAnimating(): boolean;
|
|
74
|
+
setAnimationToRest(): void;
|
|
75
|
+
private restoreDefaultValues;
|
|
76
|
+
private backupDefaultValues;
|
|
77
|
+
static getAnimationList(): string[];
|
|
78
|
+
$create(): void;
|
|
79
|
+
$logic(): void;
|
|
80
|
+
}
|
|
81
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import Component from '../core/Component';
|
|
2
|
-
import EntityRepository from '../core/EntityRepository';
|
|
3
|
-
import { ComponentTID, ComponentSID, EntityUID } from '../../types/CommonTypes';
|
|
4
|
-
export default class BlendShapeComponent extends Component {
|
|
5
|
-
private __weights;
|
|
6
|
-
private __targetNames;
|
|
7
|
-
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityComponent: EntityRepository);
|
|
8
|
-
static get componentTID(): ComponentTID;
|
|
9
|
-
set weights(weights: number[]);
|
|
10
|
-
get weights(): number[];
|
|
11
|
-
set targetNames(names: string[]);
|
|
12
|
-
get targetNames(): string[];
|
|
13
|
-
$logic(): void;
|
|
14
|
-
}
|
|
1
|
+
import Component from '../core/Component';
|
|
2
|
+
import EntityRepository from '../core/EntityRepository';
|
|
3
|
+
import { ComponentTID, ComponentSID, EntityUID } from '../../types/CommonTypes';
|
|
4
|
+
export default class BlendShapeComponent extends Component {
|
|
5
|
+
private __weights;
|
|
6
|
+
private __targetNames;
|
|
7
|
+
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityComponent: EntityRepository);
|
|
8
|
+
static get componentTID(): ComponentTID;
|
|
9
|
+
set weights(weights: number[]);
|
|
10
|
+
get weights(): number[];
|
|
11
|
+
set targetNames(names: string[]);
|
|
12
|
+
get targetNames(): string[];
|
|
13
|
+
$logic(): void;
|
|
14
|
+
}
|
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import Component from '../core/Component';
|
|
2
|
-
import EntityRepository from '../core/EntityRepository';
|
|
3
|
-
import Vector3 from '../math/Vector3';
|
|
4
|
-
import Vector4 from '../math/Vector4';
|
|
5
|
-
import { CameraTypeEnum } from '../definitions/CameraType';
|
|
6
|
-
import Matrix44 from '../math/Matrix44';
|
|
7
|
-
import MutableMatrix44 from '../math/MutableMatrix44';
|
|
8
|
-
import MutableVector3 from '../math/MutableVector3';
|
|
9
|
-
import Frustum from '../geometry/Frustum';
|
|
10
|
-
import { ComponentTID, ComponentSID, EntityUID } from '../../types/CommonTypes';
|
|
11
|
-
import RenderPass from '../renderer/RenderPass';
|
|
12
|
-
export default class CameraComponent extends Component {
|
|
13
|
-
private static readonly _eye;
|
|
14
|
-
private _eyeInner;
|
|
15
|
-
private _direction;
|
|
16
|
-
private _directionInner;
|
|
17
|
-
private _up;
|
|
18
|
-
private _upInner;
|
|
19
|
-
private _filmWidth;
|
|
20
|
-
private _filmHeight;
|
|
21
|
-
private _focalLength;
|
|
22
|
-
private _corner;
|
|
23
|
-
private _cornerInner;
|
|
24
|
-
private _parameters;
|
|
25
|
-
private _parametersInner;
|
|
26
|
-
private __type;
|
|
27
|
-
private __sceneGraphComponent?;
|
|
28
|
-
private _projectionMatrix;
|
|
29
|
-
private __isProjectionMatrixUpToDate;
|
|
30
|
-
private _viewMatrix;
|
|
31
|
-
private __isViewMatrixUpToDate;
|
|
32
|
-
private static __main;
|
|
33
|
-
private static returnVector3;
|
|
34
|
-
private static __globalDataRepository;
|
|
35
|
-
private static __tmpVector3_0;
|
|
36
|
-
private static __tmpVector3_1;
|
|
37
|
-
private static __tmpVector3_2;
|
|
38
|
-
private static __tmpMatrix44_0;
|
|
39
|
-
private __frustum;
|
|
40
|
-
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
41
|
-
static set main(componentSID: ComponentSID);
|
|
42
|
-
static get main(): ComponentSID;
|
|
43
|
-
set type(type: CameraTypeEnum);
|
|
44
|
-
get type(): CameraTypeEnum;
|
|
45
|
-
get eye(): Vector3;
|
|
46
|
-
set eye(noUseVec: Vector3);
|
|
47
|
-
get eyeInner(): Vector3;
|
|
48
|
-
/**
|
|
49
|
-
* @private
|
|
50
|
-
*/
|
|
51
|
-
set eyeInner(vec: Vector3);
|
|
52
|
-
set upInner(vec: Vector3);
|
|
53
|
-
set up(vec: Vector3);
|
|
54
|
-
get up(): Vector3;
|
|
55
|
-
get upInner(): Vector3;
|
|
56
|
-
set direction(vec: Vector3);
|
|
57
|
-
set directionInner(vec: Vector3);
|
|
58
|
-
get direction(): Vector3;
|
|
59
|
-
get directionInner(): Vector3;
|
|
60
|
-
set corner(vec: Vector4);
|
|
61
|
-
get corner(): Vector4;
|
|
62
|
-
set left(value: number);
|
|
63
|
-
set leftInner(value: number);
|
|
64
|
-
get left(): number;
|
|
65
|
-
set right(value: number);
|
|
66
|
-
set rightInner(value: number);
|
|
67
|
-
get right(): number;
|
|
68
|
-
set top(value: number);
|
|
69
|
-
set topInner(value: number);
|
|
70
|
-
get top(): number;
|
|
71
|
-
set bottom(value: number);
|
|
72
|
-
set bottomInner(value: number);
|
|
73
|
-
get bottom(): number;
|
|
74
|
-
set cornerInner(vec: Vector4);
|
|
75
|
-
get cornerInner(): Vector4;
|
|
76
|
-
set parametersInner(vec: Vector4);
|
|
77
|
-
get parametersInner(): Vector4;
|
|
78
|
-
get parameters(): Vector4;
|
|
79
|
-
set zNear(val: number);
|
|
80
|
-
set zNearInner(val: number);
|
|
81
|
-
get zNearInner(): number;
|
|
82
|
-
get zNear(): number;
|
|
83
|
-
set focalLength(val: number);
|
|
84
|
-
get focalLength(): number;
|
|
85
|
-
set zFar(val: number);
|
|
86
|
-
set zFarInner(val: number);
|
|
87
|
-
get zFarInner(): number;
|
|
88
|
-
get zFar(): number;
|
|
89
|
-
setFovyAndChangeFilmSize(degree: number): void;
|
|
90
|
-
setFovyAndChangeFocalLength(degree: number): void;
|
|
91
|
-
get fovy(): number;
|
|
92
|
-
set fovyInner(val: number);
|
|
93
|
-
set aspect(val: number);
|
|
94
|
-
get aspect(): number;
|
|
95
|
-
set xMag(val: number);
|
|
96
|
-
get xMag(): number;
|
|
97
|
-
set yMag(val: number);
|
|
98
|
-
get yMag(): number;
|
|
99
|
-
static get componentTID(): ComponentTID;
|
|
100
|
-
calcProjectionMatrix(): MutableMatrix44;
|
|
101
|
-
get projectionMatrix(): Matrix44;
|
|
102
|
-
calcViewMatrix(): MutableMatrix44;
|
|
103
|
-
get viewMatrix(): Matrix44;
|
|
104
|
-
set viewMatrix(viewMatrix: Matrix44);
|
|
105
|
-
set projectionMatrix(projectionMatrix: Matrix44);
|
|
106
|
-
get viewProjectionMatrix(): MutableMatrix44;
|
|
107
|
-
setValuesToGlobalDataRepositoryOnlyMatrices(): void;
|
|
108
|
-
setValuesToGlobalDataRepository(): void;
|
|
109
|
-
get worldPosition(): MutableVector3;
|
|
110
|
-
updateFrustum(): void;
|
|
111
|
-
get frustum(): Frustum;
|
|
112
|
-
$create(): void;
|
|
113
|
-
$logic({ renderPass }: {
|
|
114
|
-
renderPass: RenderPass;
|
|
115
|
-
}): void;
|
|
116
|
-
}
|
|
1
|
+
import Component from '../core/Component';
|
|
2
|
+
import EntityRepository from '../core/EntityRepository';
|
|
3
|
+
import Vector3 from '../math/Vector3';
|
|
4
|
+
import Vector4 from '../math/Vector4';
|
|
5
|
+
import { CameraTypeEnum } from '../definitions/CameraType';
|
|
6
|
+
import Matrix44 from '../math/Matrix44';
|
|
7
|
+
import MutableMatrix44 from '../math/MutableMatrix44';
|
|
8
|
+
import MutableVector3 from '../math/MutableVector3';
|
|
9
|
+
import Frustum from '../geometry/Frustum';
|
|
10
|
+
import { ComponentTID, ComponentSID, EntityUID } from '../../types/CommonTypes';
|
|
11
|
+
import RenderPass from '../renderer/RenderPass';
|
|
12
|
+
export default class CameraComponent extends Component {
|
|
13
|
+
private static readonly _eye;
|
|
14
|
+
private _eyeInner;
|
|
15
|
+
private _direction;
|
|
16
|
+
private _directionInner;
|
|
17
|
+
private _up;
|
|
18
|
+
private _upInner;
|
|
19
|
+
private _filmWidth;
|
|
20
|
+
private _filmHeight;
|
|
21
|
+
private _focalLength;
|
|
22
|
+
private _corner;
|
|
23
|
+
private _cornerInner;
|
|
24
|
+
private _parameters;
|
|
25
|
+
private _parametersInner;
|
|
26
|
+
private __type;
|
|
27
|
+
private __sceneGraphComponent?;
|
|
28
|
+
private _projectionMatrix;
|
|
29
|
+
private __isProjectionMatrixUpToDate;
|
|
30
|
+
private _viewMatrix;
|
|
31
|
+
private __isViewMatrixUpToDate;
|
|
32
|
+
private static __main;
|
|
33
|
+
private static returnVector3;
|
|
34
|
+
private static __globalDataRepository;
|
|
35
|
+
private static __tmpVector3_0;
|
|
36
|
+
private static __tmpVector3_1;
|
|
37
|
+
private static __tmpVector3_2;
|
|
38
|
+
private static __tmpMatrix44_0;
|
|
39
|
+
private __frustum;
|
|
40
|
+
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
41
|
+
static set main(componentSID: ComponentSID);
|
|
42
|
+
static get main(): ComponentSID;
|
|
43
|
+
set type(type: CameraTypeEnum);
|
|
44
|
+
get type(): CameraTypeEnum;
|
|
45
|
+
get eye(): Vector3;
|
|
46
|
+
set eye(noUseVec: Vector3);
|
|
47
|
+
get eyeInner(): Vector3;
|
|
48
|
+
/**
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
51
|
+
set eyeInner(vec: Vector3);
|
|
52
|
+
set upInner(vec: Vector3);
|
|
53
|
+
set up(vec: Vector3);
|
|
54
|
+
get up(): Vector3;
|
|
55
|
+
get upInner(): Vector3;
|
|
56
|
+
set direction(vec: Vector3);
|
|
57
|
+
set directionInner(vec: Vector3);
|
|
58
|
+
get direction(): Vector3;
|
|
59
|
+
get directionInner(): Vector3;
|
|
60
|
+
set corner(vec: Vector4);
|
|
61
|
+
get corner(): Vector4;
|
|
62
|
+
set left(value: number);
|
|
63
|
+
set leftInner(value: number);
|
|
64
|
+
get left(): number;
|
|
65
|
+
set right(value: number);
|
|
66
|
+
set rightInner(value: number);
|
|
67
|
+
get right(): number;
|
|
68
|
+
set top(value: number);
|
|
69
|
+
set topInner(value: number);
|
|
70
|
+
get top(): number;
|
|
71
|
+
set bottom(value: number);
|
|
72
|
+
set bottomInner(value: number);
|
|
73
|
+
get bottom(): number;
|
|
74
|
+
set cornerInner(vec: Vector4);
|
|
75
|
+
get cornerInner(): Vector4;
|
|
76
|
+
set parametersInner(vec: Vector4);
|
|
77
|
+
get parametersInner(): Vector4;
|
|
78
|
+
get parameters(): Vector4;
|
|
79
|
+
set zNear(val: number);
|
|
80
|
+
set zNearInner(val: number);
|
|
81
|
+
get zNearInner(): number;
|
|
82
|
+
get zNear(): number;
|
|
83
|
+
set focalLength(val: number);
|
|
84
|
+
get focalLength(): number;
|
|
85
|
+
set zFar(val: number);
|
|
86
|
+
set zFarInner(val: number);
|
|
87
|
+
get zFarInner(): number;
|
|
88
|
+
get zFar(): number;
|
|
89
|
+
setFovyAndChangeFilmSize(degree: number): void;
|
|
90
|
+
setFovyAndChangeFocalLength(degree: number): void;
|
|
91
|
+
get fovy(): number;
|
|
92
|
+
set fovyInner(val: number);
|
|
93
|
+
set aspect(val: number);
|
|
94
|
+
get aspect(): number;
|
|
95
|
+
set xMag(val: number);
|
|
96
|
+
get xMag(): number;
|
|
97
|
+
set yMag(val: number);
|
|
98
|
+
get yMag(): number;
|
|
99
|
+
static get componentTID(): ComponentTID;
|
|
100
|
+
calcProjectionMatrix(): MutableMatrix44;
|
|
101
|
+
get projectionMatrix(): Matrix44;
|
|
102
|
+
calcViewMatrix(): MutableMatrix44;
|
|
103
|
+
get viewMatrix(): Matrix44;
|
|
104
|
+
set viewMatrix(viewMatrix: Matrix44);
|
|
105
|
+
set projectionMatrix(projectionMatrix: Matrix44);
|
|
106
|
+
get viewProjectionMatrix(): MutableMatrix44;
|
|
107
|
+
setValuesToGlobalDataRepositoryOnlyMatrices(): void;
|
|
108
|
+
setValuesToGlobalDataRepository(): void;
|
|
109
|
+
get worldPosition(): MutableVector3;
|
|
110
|
+
updateFrustum(): void;
|
|
111
|
+
get frustum(): Frustum;
|
|
112
|
+
$create(): void;
|
|
113
|
+
$logic({ renderPass }: {
|
|
114
|
+
renderPass: RenderPass;
|
|
115
|
+
}): void;
|
|
116
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import Component from '../core/Component';
|
|
2
|
-
import { EntityUID, ComponentSID, ComponentTID } from '../../types/CommonTypes';
|
|
3
|
-
import EntityRepository from '../core/EntityRepository';
|
|
4
|
-
import ICameraController from '../cameras/ICameraController';
|
|
5
|
-
import { CameraControllerTypeEnum } from '../definitions/CameraControllerType';
|
|
6
|
-
export default class CameraControllerComponent extends Component {
|
|
7
|
-
private __cameraComponent?;
|
|
8
|
-
private __cameraController;
|
|
9
|
-
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
10
|
-
set type(type: CameraControllerTypeEnum);
|
|
11
|
-
get type(): CameraControllerTypeEnum;
|
|
12
|
-
get controller(): ICameraController;
|
|
13
|
-
static get componentTID(): ComponentTID;
|
|
14
|
-
$create(): void;
|
|
15
|
-
$logic(): void;
|
|
16
|
-
}
|
|
1
|
+
import Component from '../core/Component';
|
|
2
|
+
import { EntityUID, ComponentSID, ComponentTID } from '../../types/CommonTypes';
|
|
3
|
+
import EntityRepository from '../core/EntityRepository';
|
|
4
|
+
import ICameraController from '../cameras/ICameraController';
|
|
5
|
+
import { CameraControllerTypeEnum } from '../definitions/CameraControllerType';
|
|
6
|
+
export default class CameraControllerComponent extends Component {
|
|
7
|
+
private __cameraComponent?;
|
|
8
|
+
private __cameraController;
|
|
9
|
+
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
10
|
+
set type(type: CameraControllerTypeEnum);
|
|
11
|
+
get type(): CameraControllerTypeEnum;
|
|
12
|
+
get controller(): ICameraController;
|
|
13
|
+
static get componentTID(): ComponentTID;
|
|
14
|
+
$create(): void;
|
|
15
|
+
$logic(): void;
|
|
16
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import Component from '../core/Component';
|
|
2
|
-
import EntityRepository from '../core/EntityRepository';
|
|
3
|
-
import Vector3 from '../math/Vector3';
|
|
4
|
-
import { ComponentTID, EntityUID, ComponentSID } from '../../types/CommonTypes';
|
|
5
|
-
export default class LightComponent extends Component {
|
|
6
|
-
type: import("../misc/EnumIO").EnumIO;
|
|
7
|
-
private __intensity;
|
|
8
|
-
private readonly __initialdirection;
|
|
9
|
-
private __direction;
|
|
10
|
-
spotExponent: number;
|
|
11
|
-
spotCutoff: number;
|
|
12
|
-
range: number;
|
|
13
|
-
private __sceneGraphComponent?;
|
|
14
|
-
private static __componentRepository;
|
|
15
|
-
private static __globalDataRepository;
|
|
16
|
-
private static __tmp_vec4;
|
|
17
|
-
private static __lightPositions;
|
|
18
|
-
private static __lightDirections;
|
|
19
|
-
private static __lightIntensities;
|
|
20
|
-
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
21
|
-
static get componentTID(): ComponentTID;
|
|
22
|
-
get direction(): Vector3;
|
|
23
|
-
set intensity(value: Vector3);
|
|
24
|
-
get intensity(): Vector3;
|
|
25
|
-
$create(): void;
|
|
26
|
-
$load(): void;
|
|
27
|
-
$logic(): void;
|
|
28
|
-
}
|
|
1
|
+
import Component from '../core/Component';
|
|
2
|
+
import EntityRepository from '../core/EntityRepository';
|
|
3
|
+
import Vector3 from '../math/Vector3';
|
|
4
|
+
import { ComponentTID, EntityUID, ComponentSID } from '../../types/CommonTypes';
|
|
5
|
+
export default class LightComponent extends Component {
|
|
6
|
+
type: import("../misc/EnumIO").EnumIO;
|
|
7
|
+
private __intensity;
|
|
8
|
+
private readonly __initialdirection;
|
|
9
|
+
private __direction;
|
|
10
|
+
spotExponent: number;
|
|
11
|
+
spotCutoff: number;
|
|
12
|
+
range: number;
|
|
13
|
+
private __sceneGraphComponent?;
|
|
14
|
+
private static __componentRepository;
|
|
15
|
+
private static __globalDataRepository;
|
|
16
|
+
private static __tmp_vec4;
|
|
17
|
+
private static __lightPositions;
|
|
18
|
+
private static __lightDirections;
|
|
19
|
+
private static __lightIntensities;
|
|
20
|
+
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
21
|
+
static get componentTID(): ComponentTID;
|
|
22
|
+
get direction(): Vector3;
|
|
23
|
+
set intensity(value: Vector3);
|
|
24
|
+
get intensity(): Vector3;
|
|
25
|
+
$create(): void;
|
|
26
|
+
$load(): void;
|
|
27
|
+
$logic(): void;
|
|
28
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import Component from '../core/Component';
|
|
2
|
-
import EntityRepository from '../core/EntityRepository';
|
|
3
|
-
import Vector3 from '../math/Vector3';
|
|
4
|
-
import CameraComponent from './CameraComponent';
|
|
5
|
-
import Vector4 from '../math/Vector4';
|
|
6
|
-
import Mesh from '../geometry/Mesh';
|
|
7
|
-
import { ComponentTID, EntityUID, ComponentSID } from '../../types/CommonTypes';
|
|
8
|
-
import MutableVector3 from '../math/MutableVector3';
|
|
9
|
-
import { ProcessApproachEnum } from '../definitions/ProcessApproach';
|
|
10
|
-
export default class MeshComponent extends Component {
|
|
11
|
-
private __viewDepth;
|
|
12
|
-
private __mesh?;
|
|
13
|
-
private __blendShapeComponent?;
|
|
14
|
-
private __sceneGraphComponent?;
|
|
15
|
-
isPickable: boolean;
|
|
16
|
-
private static __tmpVector3_0;
|
|
17
|
-
private static __tmpVector3_1;
|
|
18
|
-
private static __tmpVector3_2;
|
|
19
|
-
private static __returnVector3;
|
|
20
|
-
private static __tmpMatrix44_0;
|
|
21
|
-
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
22
|
-
static get componentTID(): ComponentTID;
|
|
23
|
-
setMesh(mesh: Mesh): void;
|
|
24
|
-
unsetMesh(): boolean;
|
|
25
|
-
get mesh(): Mesh | undefined;
|
|
26
|
-
set weights(value: number[]);
|
|
27
|
-
calcViewDepth(cameraComponent: CameraComponent): number;
|
|
28
|
-
get viewDepth(): number;
|
|
29
|
-
static alertNoMeshSet(meshComponent: MeshComponent): void;
|
|
30
|
-
castRay(srcPointInWorld: Vector3, directionInWorld: Vector3, dotThreshold?: number): {
|
|
31
|
-
t: number;
|
|
32
|
-
intersectedPositionInWorld: Vector3 | null;
|
|
33
|
-
} | {
|
|
34
|
-
t: number;
|
|
35
|
-
intersectedPositionInWorld: undefined;
|
|
36
|
-
};
|
|
37
|
-
castRayFromScreen(x: number, y: number, camera: CameraComponent, viewport: Vector4, dotThreshold?: number): {
|
|
38
|
-
t: number;
|
|
39
|
-
intersectedPositionInWorld: MutableVector3 | null;
|
|
40
|
-
} | {
|
|
41
|
-
t: number;
|
|
42
|
-
intersectedPositionInWorld: undefined;
|
|
43
|
-
};
|
|
44
|
-
$create(): void;
|
|
45
|
-
static common_$load({ processApproach, }: {
|
|
46
|
-
processApproach: ProcessApproachEnum;
|
|
47
|
-
}): void;
|
|
48
|
-
$load(): void;
|
|
49
|
-
$logic(): void;
|
|
50
|
-
}
|
|
1
|
+
import Component from '../core/Component';
|
|
2
|
+
import EntityRepository from '../core/EntityRepository';
|
|
3
|
+
import Vector3 from '../math/Vector3';
|
|
4
|
+
import CameraComponent from './CameraComponent';
|
|
5
|
+
import Vector4 from '../math/Vector4';
|
|
6
|
+
import Mesh from '../geometry/Mesh';
|
|
7
|
+
import { ComponentTID, EntityUID, ComponentSID } from '../../types/CommonTypes';
|
|
8
|
+
import MutableVector3 from '../math/MutableVector3';
|
|
9
|
+
import { ProcessApproachEnum } from '../definitions/ProcessApproach';
|
|
10
|
+
export default class MeshComponent extends Component {
|
|
11
|
+
private __viewDepth;
|
|
12
|
+
private __mesh?;
|
|
13
|
+
private __blendShapeComponent?;
|
|
14
|
+
private __sceneGraphComponent?;
|
|
15
|
+
isPickable: boolean;
|
|
16
|
+
private static __tmpVector3_0;
|
|
17
|
+
private static __tmpVector3_1;
|
|
18
|
+
private static __tmpVector3_2;
|
|
19
|
+
private static __returnVector3;
|
|
20
|
+
private static __tmpMatrix44_0;
|
|
21
|
+
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
22
|
+
static get componentTID(): ComponentTID;
|
|
23
|
+
setMesh(mesh: Mesh): void;
|
|
24
|
+
unsetMesh(): boolean;
|
|
25
|
+
get mesh(): Mesh | undefined;
|
|
26
|
+
set weights(value: number[]);
|
|
27
|
+
calcViewDepth(cameraComponent: CameraComponent): number;
|
|
28
|
+
get viewDepth(): number;
|
|
29
|
+
static alertNoMeshSet(meshComponent: MeshComponent): void;
|
|
30
|
+
castRay(srcPointInWorld: Vector3, directionInWorld: Vector3, dotThreshold?: number): {
|
|
31
|
+
t: number;
|
|
32
|
+
intersectedPositionInWorld: Vector3 | null;
|
|
33
|
+
} | {
|
|
34
|
+
t: number;
|
|
35
|
+
intersectedPositionInWorld: undefined;
|
|
36
|
+
};
|
|
37
|
+
castRayFromScreen(x: number, y: number, camera: CameraComponent, viewport: Vector4, dotThreshold?: number): {
|
|
38
|
+
t: number;
|
|
39
|
+
intersectedPositionInWorld: MutableVector3 | null;
|
|
40
|
+
} | {
|
|
41
|
+
t: number;
|
|
42
|
+
intersectedPositionInWorld: undefined;
|
|
43
|
+
};
|
|
44
|
+
$create(): void;
|
|
45
|
+
static common_$load({ processApproach, }: {
|
|
46
|
+
processApproach: ProcessApproachEnum;
|
|
47
|
+
}): void;
|
|
48
|
+
$load(): void;
|
|
49
|
+
$logic(): void;
|
|
50
|
+
}
|