/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | matrix_util.h | 53 static inline constexpr Mat4X4 Transpose(const Mat4X4& m) in BASE_BEGIN_NAMESPACE() 55 Mat4X4 result; in BASE_BEGIN_NAMESPACE() 91 static inline constexpr Mat4X4 PostScale(const Mat4X4& mat, const Vec3& vec) in BASE_BEGIN_NAMESPACE() 93 Mat4X4 result; in BASE_BEGIN_NAMESPACE() 112 static inline constexpr Mat4X4 Scale(const Mat4X4& mat, const Vec3& vec) in BASE_BEGIN_NAMESPACE() 114 Mat4X4 result; in BASE_BEGIN_NAMESPACE() 238 Mat4X4 result; in BASE_BEGIN_NAMESPACE() 261 static inline constexpr Mat4X4 Translate(const Mat4X4& mat, const Vec2& vec) in BASE_BEGIN_NAMESPACE() 275 static inline Mat4X4 SkewXY(const Mat4X4& mat, const Vec2& vec) in BASE_BEGIN_NAMESPACE() 283 static inline Mat4X4 RotateZCWRadians(const Mat4X4& mat, float rot) in BASE_BEGIN_NAMESPACE() [all …]
|
H A D | matrix.h | 130 class Mat4X4 final { in BASE_BEGIN_NAMESPACE() 158 inline constexpr Mat4X4() : data { 0 } {} in BASE_BEGIN_NAMESPACE() 165 inline constexpr Mat4X4(const float d[16]) in BASE_BEGIN_NAMESPACE() 176 inline explicit constexpr Mat4X4(float id) in BASE_BEGIN_NAMESPACE() 181 explicit inline constexpr Mat4X4(const Mat3X3& mat3X3) in BASE_BEGIN_NAMESPACE() 186 inline ~Mat4X4() = default; in BASE_BEGIN_NAMESPACE() 189 inline constexpr Mat4X4 operator*(const Mat4X4& rhs) const in BASE_BEGIN_NAMESPACE() 192 Mat4X4 res; in BASE_BEGIN_NAMESPACE() 223 inline constexpr bool operator==(const Mat4X4& mat) const in BASE_BEGIN_NAMESPACE() 246 static_assert(sizeof(Mat4X4) == 16 * sizeof(float)); in BASE_BEGIN_NAMESPACE() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/ |
H A D | render_node_default_cameras.cpp | 42 constexpr BASE_NS::Math::Mat4X4 ZERO_MATRIX_4X4 = {}; 43 constexpr BASE_NS::Math::Mat4X4 SHADOW_BIAS_MATRIX = BASE_NS::Math::Mat4X4 { 0.5f, 0.0f, 0.0f, 0.0f… 45 constexpr BASE_NS::Math::Mat4X4 GetShadowBias(const uint32_t shadowIndex, const uint32_t shadowCoun… in GetShadowBias() 51 …return BASE_NS::Math::Mat4X4 { sc, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0… in GetShadowBias() 160 const Math::Mat4X4 viewProj = jp.proj * currCamera.matrices.view; in ExecuteFrame() 170 … const Math::Mat4X4 viewProjPrevFrame = jpPrevFrame.proj * currCamera.matrices.viewPrevFrame; in ExecuteFrame() 176 const Math::Mat4X4 shadowBias = GetShadowBiasMatrix(dsLight, currCamera); in ExecuteFrame() 177 const Math::Mat4X4 shadowViewProj = shadowBias * viewProj; in ExecuteFrame() 235 BASE_NS::Math::Mat4X4 RenderNodeDefaultCameras::GetShadowBiasMatrix( in GetShadowBiasMatrix()
|
H A D | render_node_default_cameras.h | 59 BASE_NS::Math::Mat4X4 baseProj { BASE_NS::Math::IDENTITY_4X4 }; 60 BASE_NS::Math::Mat4X4 proj { BASE_NS::Math::IDENTITY_4X4 }; 66 BASE_NS::Math::Mat4X4 GetShadowBiasMatrix(
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/ |
H A D | render_system.h | 36 class Mat4X4; in BASE_BEGIN_NAMESPACE() local 121 BASE_NS::Math::Mat4X4 mtx; // world matrix 122 BASE_NS::Math::Mat4X4 prevWorld; // previous world matrix 158 const BASE_NS::Math::Mat4X4& world; 159 const BASE_NS::Math::Mat4X4& prevWorld; 165 const BASE_NS::Math::Mat4X4& world; 215 …const CORE_NS::Entity& entity, const BASE_NS::Math::Mat4X4& view, const BASE_NS::Math::Mat4X4& pro… 332 BASE_NS::Math::Mat4X4 view; 333 BASE_NS::Math::Mat4X4 proj;
|
H A D | skinning_system.cpp | 61 const Math::Mat4X4& skinEntityWorld, JointMatricesComponent& jointMatrices) in UpdateJointBounds() 83 const Math::Mat4X4& bbWorld = skinEntityWorld * jointMatrices.jointMatrices[j]; in UpdateJointBounds() 206 const array_view<Math::Mat4X4 const>& ibms, JointMatricesComponent& jointMatrices, in UpdateJointTransformations() 207 const Math::Mat4X4& skinEntityWorldInverse) in UpdateJointTransformations() 209 auto matrices = array_view<Math::Mat4X4>( in UpdateJointTransformations() 224 …return Math::Mat4X4 { 1.f, 0.f, 0.f, 0.f, 0.f, 1.f, 0.f, 0.f, 0.f, 0.f, 1.f, 0.f, 0.f, 0.f, 0.f, 1… in UpdateJointTransformations() 231 Math::Mat4X4 skinEntityWorld(1.0f); in UpdateSkin() 232 Math::Mat4X4 skinEntityWorldInverse(1.0f); in UpdateSkin()
|
H A D | skinning_system.h | 72 …const BASE_NS::array_view<BASE_NS::Math::Mat4X4 const>& iblMatrices, JointMatricesComponent& joint… 73 const BASE_NS::Math::Mat4X4& skinEntityWorldInverse);
|
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/api/ |
H A D | node.h | 43 META_API_INTERFACE_PROPERTY_CACHED(Node, LocalMatrix, BASE_NS::Math::Mat4X4) in SCENE_BEGIN_NAMESPACE() 77 BASE_NS::Math::Mat4X4 GetGlobalTransform() const in SCENE_BEGIN_NAMESPACE() 85 void SetGlobalTransform(const BASE_NS::Math::Mat4X4& mat) in SCENE_BEGIN_NAMESPACE()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/render/ |
H A D | render_data_defines_3d.h | 130 BASE_NS::Math::Mat4X4 world; 132 BASE_NS::Math::Mat4X4 normalWorld; 134 BASE_NS::Math::Mat4X4 prevWorld; 405 BASE_NS::Math::Mat4X4 view; 407 BASE_NS::Math::Mat4X4 proj; 410 BASE_NS::Math::Mat4X4 viewPrevFrame; 412 BASE_NS::Math::Mat4X4 projPrevFrame;
|
H A D | intf_render_data_store_default_material.h | 220 BASE_NS::Math::Mat4X4* data { nullptr }; 376 …virtual uint32_t AddSkinJointMatrices(const BASE_NS::array_view<const BASE_NS::Math::Mat4X4> skinJ… 377 const BASE_NS::array_view<const BASE_NS::Math::Mat4X4> prevSkinJointMatrices) = 0; 454 virtual BASE_NS::array_view<const BASE_NS::Math::Mat4X4> GetSubmeshJointMatrixData(
|
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | asset_migration.cpp | 50 { PROPERTYTYPE(Math::Mat4X4), PropertyType::MAT4X4_T }, // Math::Mat4X4 to BASE_NS::Math::Mat4X4 70 …{ PROPERTYTYPE_ARRAY(Math::Mat4X4), PropertyType::MAT4X4_ARRAY_T }, // Math::Mat4X4 to BASE_NS::Ma… 75 { PROPERTYTYPE(vector<Math::Mat4X4>), PropertyType::MAT4X4_VECTOR_T },
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/util/ |
H A D | intf_frustum_util.h | 28 class Mat4X4; in BASE_BEGIN_NAMESPACE() local 70 virtual Frustum CreateFrustum(const BASE_NS::Math::Mat4X4& matrix) const = 0;
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/util/ |
H A D | frustum_util.h | 25 class Mat4X4; in BASE_BEGIN_NAMESPACE() local 34 Frustum CreateFrustum(const BASE_NS::Math::Mat4X4& matrix) const override; in CORE_BEGIN_NAMESPACE()
|
H A D | frustum_util.cpp | 31 using BASE_NS::Math::Mat4X4; 34 Frustum FrustumUtil::CreateFrustum(const Mat4X4& matrix) const in CreateFrustum()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/property/ |
H A D | property_types.h | 31 class Mat4X4; in BASE_BEGIN_NAMESPACE() local 98 inline constexpr PropertyTypeDecl MAT4X4_T = PROPERTYTYPE(BASE_NS::Math::Mat4X4); 115 inline constexpr PropertyTypeDecl MAT4X4_ARRAY_T = PROPERTYTYPE_ARRAY(BASE_NS::Math::Mat4X4); 121 … constexpr PropertyTypeDecl MAT4X4_VECTOR_T = PROPERTYTYPE(BASE_NS::vector<BASE_NS::Math::Mat4X4>);
|
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/ |
H A D | intf_node.h | 117 META_PROPERTY(BASE_NS::Math::Mat4X4, LocalMatrix) 251 virtual BASE_NS::Math::Mat4X4 GetGlobalTransform() const = 0; 258 virtual void SetGlobalTransform(const BASE_NS::Math::Mat4X4& matrix) = 0;
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | picking.cpp | 50 MinAndMax GetWorldAABB(const Math::Mat4X4& world, const Math::Vec3& aabbMin, const Math::Vec3& aabb… in GetWorldAABB() 161 const Math::Mat4X4& worldMatrix = worldMatrixComponentManager.Get(worldMatrixId).matrix; in UpdateRecursiveAABB() 185 …const ISceneNode& sceneNode, const Math::Mat4X4& parentWorld, bool isRecursive, MinAndMax& mamInOu… in UpdateRecursiveAABB() 188 Math::Mat4X4 worldMatrix = parentWorld; in UpdateRecursiveAABB() 193 const Math::Mat4X4 localMatrix = Math::Trs(tc.position, tc.rotation, tc.scale); in UpdateRecursiveAABB() 218 RayCastResult HitTestNode(ISceneNode& node, const MeshComponent& mesh, const Math::Mat4X4& matrix, in HitTestNode() 261 Math::Mat4X4 projToView = in ScreenToWorld() 336 …Math::Mat4X4 viewToProj = CameraMatrixUtil::CalculateProjectionMatrix(cameraComponent, isCameraNeg… in WorldToScreen() 553 MinAndMax Picking::GetWorldAABB(const Math::Mat4X4& world, const Math::Vec3& aabbMin, const Math::V… in GetWorldAABB() 585 Math::Mat4X4(1.0f), isRecursive, mam); in GetTransformComponentAABB()
|
H A D | property_util.cpp | 71 byteSize = sizeof(Math::Mat4X4); in GetPropertyTypeByteSize() 116 return PropertyType::MetaDataFrom<Math::Mat4X4>(nullptr); in GetMetaData() 453 Math::Mat4X4 val; in SetCustomPropertyBlobValue() 455 …Properties.SetValue(offset, array_view { reinterpret_cast<uint8_t*>(&val), sizeof(Math::Mat4X4) }); in SetCustomPropertyBlobValue()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/ |
H A D | register_engine_access.cpp | 53 BASE_NS::Math::Mat4X4, 62 BASE_NS::vector<BASE_NS::Math::Mat4X4>,
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/datastore/ |
H A D | render_data_store_default_material.cpp | 144 Math::Mat4X4* AllocateMatrices(RenderDataStoreDefaultMaterial::LinearAllocatorStruct& allocator, co… in AllocateMatrices() 146 const size_t byteSize = count * sizeof(Math::Mat4X4); in AllocateMatrices() 147 return static_cast<Math::Mat4X4*>(AllocateMatrixMemory(allocator, byteSize)); in AllocateMatrices() 410 …const array_view<const Math::Mat4X4> skinJointMatrices, const array_view<const Math::Mat4X4> prevS… in AddSkinJointMatrices() 417 const uint32_t byteSize = sizeof(Math::Mat4X4) * jointCount; in AddSkinJointMatrices() 419 … Math::Mat4X4* jointMatrixData = AllocateMatrices(submeshJointMatricesAllocator_, fullJointCount); in AddSkinJointMatrices() 679 array_view<const Math::Mat4X4> RenderDataStoreDefaultMaterial::GetSubmeshJointMatrixData( in GetSubmeshJointMatrixData() 684 return array_view<const Math::Mat4X4>(jm.data, static_cast<size_t>(jm.count)); in GetSubmeshJointMatrixData()
|
H A D | render_data_store_default_material.h | 94 …uint32_t AddSkinJointMatrices(const BASE_NS::array_view<const BASE_NS::Math::Mat4X4> skinJointMatr… in CORE3D_BEGIN_NAMESPACE() 95 const BASE_NS::array_view<const BASE_NS::Math::Mat4X4> prevSkinJointMatrices) override; in CORE3D_BEGIN_NAMESPACE() 116 BASE_NS::array_view<const BASE_NS::Math::Mat4X4> GetSubmeshJointMatrixData( in CORE3D_BEGIN_NAMESPACE()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/ |
H A D | intf_picking.h | 33 class Mat4X4; in BASE_BEGIN_NAMESPACE() local 111 …virtual MinAndMax GetWorldAABB(const BASE_NS::Math::Mat4X4& world, const BASE_NS::Math::Vec3& aabb…
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/ecshelper/PropertyTools/ |
H A D | core_metadata.inl | 58 DECLARE_PROPERTY_TYPE(BASE_NS::Math::Mat4X4); 66 DECLARE_PROPERTY_TYPE(BASE_NS::vector<BASE_NS::Math::Mat4X4>); 303 BEGIN_METADATA(Mat4x4MetaData, BASE_NS::Math::Mat4X4) 304 DECL_PROPERTY2(BASE_NS::Math::Mat4X4, data, "", 0) 305 END_METADATA(Mat4x4MetaData, BASE_NS::Math::Mat4X4) 385 DECLARE_CONTAINER_API(MathMath4X4, BASE_NS::Math::Mat4X4);
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/components/ |
H A D | skin_ibm_component.h | 32 DEFINE_PROPERTY(BASE_NS::vector<BASE_NS::Math::Mat4X4>, matrices, "Inverse Bind Matrices", 0, )
|
H A D | local_matrix_component.h | 30 …DEFINE_PROPERTY(BASE_NS::Math::Mat4X4, matrix, "Local Matrix", 0, VALUE(BASE_NS::Math::IDENTITY_4X…
|