Home
last modified time | relevance | path

Searched refs:Vec4 (Results 1 – 25 of 93) sorted by relevance

1234

/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/
H A Dvector.h31 class Vec4; in BASE_BEGIN_NAMESPACE() local
1016 inline constexpr Vec4 Vec4::operator+(const Vec4& v2) const in BASE_BEGIN_NAMESPACE()
1021 inline constexpr Vec4& Vec4::operator+=(const Vec4& rhs) in BASE_BEGIN_NAMESPACE()
1031 inline constexpr Vec4 Vec4::operator-() const in BASE_BEGIN_NAMESPACE()
1037 inline constexpr Vec4 Vec4::operator-(const Vec4& v2) const in BASE_BEGIN_NAMESPACE()
1042 inline constexpr Vec4& Vec4::operator-=(const Vec4& rhs) in BASE_BEGIN_NAMESPACE()
1052 inline constexpr Vec4 Vec4::operator*(const Vec4& v2) const in BASE_BEGIN_NAMESPACE()
1057 inline constexpr Vec4& Vec4::operator*=(const Vec4& rhs) in BASE_BEGIN_NAMESPACE()
1067 inline constexpr Vec4 Vec4::operator/(const Vec4& v2) const in BASE_BEGIN_NAMESPACE()
1072 inline constexpr Vec4& Vec4::operator/=(const Vec4& rhs) in BASE_BEGIN_NAMESPACE()
[all …]
H A Dmatrix_util.h161 return Vec4(0.0f, 0.0f, 0.0f, 0.0f); in BASE_BEGIN_NAMESPACE()
203 return Vec4(0.0f, 0.0f, 0.0f, 0.0f); in BASE_BEGIN_NAMESPACE()
412 const Vec4 vec0(m.y.x, m.x.x, m.x.x, m.x.x); in BASE_BEGIN_NAMESPACE()
413 const Vec4 vec1(m.y.y, m.x.y, m.x.y, m.x.y); in BASE_BEGIN_NAMESPACE()
414 const Vec4 vec2(m.y.z, m.x.z, m.x.z, m.x.z); in BASE_BEGIN_NAMESPACE()
415 const Vec4 vec3(m.y.w, m.x.w, m.x.w, m.x.w); in BASE_BEGIN_NAMESPACE()
422 constexpr Vec4 signA(+1.f, -1.f, +1.f, -1.f); in BASE_BEGIN_NAMESPACE()
423 constexpr Vec4 signB(-1.f, +1.f, -1.f, +1.f); in BASE_BEGIN_NAMESPACE()
428 const Vec4 dot0(m.x * row0); in BASE_BEGIN_NAMESPACE()
452 inline constexpr Vec4 operator*(const Mat4X4& m, const Vec4& v) in BASE_BEGIN_NAMESPACE()
[all …]
H A Dmatrix.h134 Vec4 x, y, z, w; in BASE_BEGIN_NAMESPACE()
136 Vec4 base[4]; // base[0] is X ,base [1] is Y, etc.. in BASE_BEGIN_NAMESPACE()
145 constexpr Vec4& operator[](size_t aIndex) in BASE_BEGIN_NAMESPACE()
151 constexpr const Vec4& operator[](size_t aIndex) const in BASE_BEGIN_NAMESPACE()
161 …inline constexpr Mat4X4(Vec4 const& v0, Vec4 const& v1, Vec4 const& v2, Vec4 const& v3) : x(v0), y… in BASE_BEGIN_NAMESPACE()
H A Dvector_util.h222 static inline constexpr float SqrMagnitude(const Vec4& vec) in BASE_BEGIN_NAMESPACE()
228 static inline constexpr Vec4 Lerp(const Vec4& v1, const Vec4& v2, float t) in BASE_BEGIN_NAMESPACE()
231 …return Vec4(v1.x + (v2.x - v1.x) * t, v1.y + (v2.y - v1.y) * t, v1.z + (v2.z - v1.z) * t, v1.w + (… in BASE_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Denv_impl.cpp29 static constexpr Math::Vec4 ZERO = Math::Vec4(0.0f, 0.0f, 0.0f, 0.0f);
30 static constexpr Math::Vec4 ONE = Math::Vec4(1.0f, 1.0f, 1.0f, 1.0f);
37 META_IMPLEMENT_INTERFACE_PROPERTY(IEnvironment, Math::Vec4, IndirectDiffuseFactor, ONE)
38 META_IMPLEMENT_INTERFACE_PROPERTY(IEnvironment, Math::Vec4, IndirectSpecularFactor, ONE)
39 META_IMPLEMENT_INTERFACE_PROPERTY(IEnvironment, Math::Vec4, EnvMapFactor, ONE)
47 META_IMPLEMENT_INTERFACE_PROPERTY(SCENE_NS::IEnvironment, Math::Vec4, AdditionalFactor, ZERO)
92 … BindChanges<Math::Vec4>(propHandler_, META_ACCESS_PROPERTY(IndirectDiffuseFactor), meta, ENV_DF); in CompleteInitialization()
93 … BindChanges<Math::Vec4>(propHandler_, META_ACCESS_PROPERTY(IndirectSpecularFactor), meta, ENV_SF); in CompleteInitialization()
94 BindChanges<Math::Vec4>(propHandler_, META_ACCESS_PROPERTY(EnvMapFactor), meta, ENV_MF); in CompleteInitialization()
105 … BindChanges<Math::Vec4>(propHandler_, META_ACCESS_PROPERTY(AdditionalFactor), meta, ENV_AF); in CompleteInitialization()
H A Dmaterial_impl.cpp47 …BindMetaProperty<BASE_NS::Math::Vec4, BASE_NS::Math::UVec4, BASE_NS::Math::IVec4, BASE_NS::Math::V… in BindMetaProperty()
413 BindChanges<BASE_NS::Math::Vec4>(GET_HOLDER(info), info->Factor(), meta, propName); in BindTextureSlot()
729 ConvertBindChanges<SCENE_NS::Color, BASE_NS::Math::Vec4>(GET_HOLDER(meta), in BindInputProperties()
766 BindSlottedChanges<BASE_NS::Math::Vec4, SCENE_NS::Color>(GET_HOLDER(meta), in BindInputProperties()
782 BindSlottedChanges<BASE_NS::Math::Vec4, SCENE_NS::Color>(GET_HOLDER(meta), in BindInputProperties()
787 … BindChanges<BASE_NS::Math::Vec4, float>(GET_HOLDER(meta), META_NS::Property<float>(prop), meta, in BindInputProperties()
795 … BindChanges<BASE_NS::Math::Vec4, float>(GET_HOLDER(meta), META_NS::Property<float>(prop), meta, in BindInputProperties()
804 … BindChanges<BASE_NS::Math::Vec4, float>(GET_HOLDER(meta), META_NS::Property<float>(prop), meta, in BindInputProperties()
813 … BindChanges<BASE_NS::Math::Vec4, float>(GET_HOLDER(meta), META_NS::Property<float>(prop), meta, in BindInputProperties()
832 BindSlottedChanges<BASE_NS::Math::Vec4, SCENE_NS::Color>(GET_HOLDER(meta), in BindInputProperties()
[all …]
H A Dlight_impl.cpp79 META_IMPLEMENT_INTERFACE_PROPERTY(SCENE_NS::ILight, BASE_NS::Math::Vec4, AdditionalFactor, in META_IMPLEMENT_INTERFACE_PROPERTY()
80 BASE_NS::Math::Vec4(0.f, 0.f, 0.f, 0.f)) in META_IMPLEMENT_INTERFACE_PROPERTY()
103 BindChanges<BASE_NS::Math::Vec4>( in META_IMPLEMENT_INTERFACE_PROPERTY()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/render/
H A Drender_data_defines_3d.h314 BASE_NS::Math::Vec4 pos { 0.0f, 0.0f, 0.0f, 0.0f };
316 BASE_NS::Math::Vec4 dir { 0.0f, 0.0f, 0.0f, 0.0f };
318 BASE_NS::Math::Vec4 color { 0.0f, 0.0f, 0.0f, 0.0f };
321 BASE_NS::Math::Vec4 spotLightParams { 0.0f, 0.0f, 0.0f, 0.0f };
325 BASE_NS::Math::Vec4 shadowFactors { 1.0f, 0.005f, 0.02f, 0.0f };
454 BASE_NS::Math::Vec4 envMapFactor { 1.0f, 1.0f, 1.0f, 1.0f };
456 BASE_NS::Math::Vec4 blendFactor { 0.0f, 0.0f, 0.0f, 0.0f };
479 BASE_NS::Math::Vec4 firstLayer { 1.0f, 1.0f, 1.0f, 0.0f };
481 BASE_NS::Math::Vec4 secondLayer { 1.0f, 1.0f, 1.0f, 0.0f };
510 BASE_NS::Math::Vec4 viewport { 0.0f, 0.0f, 1.0f, 1.0f };
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/datastore/
H A Drender_data_store_post_process.h118 static inline BASE_NS::Math::Vec4 GetFactorTonemap(const PostProcessConfiguration& input) in GetFactorTonemap()
124 static inline BASE_NS::Math::Vec4 GetFactorVignette(const PostProcessConfiguration& input) in GetFactorVignette()
129 static inline BASE_NS::Math::Vec4 GetFactorDither(const PostProcessConfiguration& input) in GetFactorDither()
140 static inline BASE_NS::Math::Vec4 GetFactorFringe(const PostProcessConfiguration& input) in GetFactorFringe()
146 static inline BASE_NS::Math::Vec4 GetFactorBlur(const PostProcessConfiguration& input) in GetFactorBlur()
152 static inline BASE_NS::Math::Vec4 GetFactorBloom(const PostProcessConfiguration& input) in GetFactorBloom()
158 static inline BASE_NS::Math::Vec4 GetFactorFxaa(const PostProcessConfiguration& input) in GetFactorFxaa()
164 static inline BASE_NS::Math::Vec4 GetFactorTaa(const PostProcessConfiguration& input) in GetFactorTaa()
171 static inline BASE_NS::Math::Vec4 GetFactorDof(const PostProcessConfiguration& input) in GetFactorDof()
181 static inline BASE_NS::Math::Vec4 GetFactorDof2(const PostProcessConfiguration& input) in GetFactorDof2()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/
H A Dintf_environment.h54 META_PROPERTY(BASE_NS::Math::Vec4, IndirectDiffuseFactor)
60 META_PROPERTY(BASE_NS::Math::Vec4, IndirectSpecularFactor)
66 META_PROPERTY(BASE_NS::Math::Vec4, EnvMapFactor)
109 META_PROPERTY(BASE_NS::Math::Vec4, AdditionalFactor)
H A Dmesh_arrays.h27 …BASE_NS::vector<BASE_NS::Math::Vec4> tangents; // optional, will be created if createTangents is s…
28 BASE_NS::vector<BASE_NS::Math::Vec4> colors; // optional
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/components/
H A Denvironment_component.h54 …BASE_NS::Math::Vec4, indirectDiffuseFactor, "Indirect Diffuse Factor", 0, ARRAY_VALUE(1.0f, 1.0f, …
59 …BASE_NS::Math::Vec4, indirectSpecularFactor, "Indirect Specular Factor", 0, ARRAY_VALUE(1.0f, 1.0f…
63 …DEFINE_PROPERTY(BASE_NS::Math::Vec4, envMapFactor, "Environment Map Factor", 0, ARRAY_VALUE(1.0f, …
93 …DEFINE_PROPERTY(BASE_NS::Math::Vec4, blendFactor, "Additional Blend Factor for Multiple Environmen…
H A Dfog_component.h72 …DEFINE_PROPERTY(BASE_NS::Math::Vec4, inscatteringColor, "Fog Primary Color (Intensity In Alpha)", …
77 …DEFINE_PROPERTY(BASE_NS::Math::Vec4, envMapFactor, "Environment Map Factor", 0, ARRAY_VALUE(1.0f, …
81 DEFINE_PROPERTY(BASE_NS::Math::Vec4, additionalFactor, "Additional Factor For Customization", 0,
H A Dcamera_component.h179 … DEFINE_PROPERTY(BASE_NS::Math::Vec4, viewport, "Viewport", 0, ARRAY_VALUE(0.0f, 0.0f, 1.0f, 1.0f))
184 DEFINE_PROPERTY(BASE_NS::Math::Vec4, scissor, "Scissor", 0, ARRAY_VALUE(0.0f, 0.0f, 1.0f, 1.0f))
210 …DEFINE_PROPERTY(BASE_NS::Math::Vec4, clearColorValue, "Clear Color Value", 0, ARRAY_VALUE(0.0f, 0.…
/ohos5.0/foundation/graphic/graphic_3d/kits/js/src/
H A DVec4Proxy.cpp16 Vec4Proxy::Vec4Proxy(napi_env env, META_NS::Property<BASE_NS::Math::Vec4> prop) : PropertyProxy(pro… in Vec4Proxy()
34 value = META_NS::Property<BASE_NS::Math::Vec4>(prop_)->GetValue(); in UpdateLocalValues()
39 META_NS::Property<BASE_NS::Math::Vec4>(prop_)->SetValue(value); in UpdateRemoteValues()
41 void Vec4Proxy::SetValue(const BASE_NS::Math::Vec4& v) in SetValue()
103 BASE_NS::Math::Vec4 v { x, y, z, w }; in SetValue()
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/api/
H A Denvironment.h43 API_INTERFACE_PROPERTY_CACHED(Environment, IndirectDiffuseFactor, BASE_NS::Math::Vec4) in SCENE_BEGIN_NAMESPACE()
44 API_INTERFACE_PROPERTY_CACHED(Environment, IndirectSpecularFactor, BASE_NS::Math::Vec4) in SCENE_BEGIN_NAMESPACE()
45 API_INTERFACE_PROPERTY_CACHED(Environment, EnvMapFactor, BASE_NS::Math::Vec4) in SCENE_BEGIN_NAMESPACE()
51 API_INTERFACE_PROPERTY_CACHED(Environment, AdditionalFactor, BASE_NS::Math::Vec4) in SCENE_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/kits/js/include/
H A DVec4Proxy.h25 BASE_NS::Math::Vec4 value;
30 Vec4Proxy(napi_env env, META_NS::Property<BASE_NS::Math::Vec4> prop);
33 void SetValue(const BASE_NS::Math::Vec4& v);
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/
H A Drender_light_helper.h43 … static BASE_NS::Math::Vec4 GetShadowAtlasSizeInvSize(const IRenderDataStoreDefaultLight& dsLight) in CORE3D_BEGIN_NAMESPACE()
76 const BASE_NS::Math::Vec4 pos = currLight.pos; in CORE3D_BEGIN_NAMESPACE()
77 const BASE_NS::Math::Vec4 dir = currLight.dir; in CORE3D_BEGIN_NAMESPACE()
83 … BASE_NS::Math::Vec4(BASE_NS::Math::Vec3(currLight.color) * currLight.color.w, currLight.color.w); in CORE3D_BEGIN_NAMESPACE()
H A Drender_node_default_shadows_blur.h68 const BASE_NS::Math::Vec4 texSizeInvTexSize); in CORE3D_BEGIN_NAMESPACE()
71 … const RENDER_NS::IDescriptorSetBinder::Ptr& binder, const BASE_NS::Math::Vec4& texSizeInvTexSize, in CORE3D_BEGIN_NAMESPACE()
72 const BASE_NS::Math::Vec4& dir, RENDER_NS::RenderHandle imageHandle); in CORE3D_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/datastore/
H A Dintf_render_data_store_post_process.h53 BASE_NS::Math::Vec4 factors[PostProcessConstants::GLOBAL_FACTOR_COUNT]; in RENDER_BEGIN_NAMESPACE()
56 BASE_NS::Math::Vec4 userFactors[PostProcessConstants::USER_GLOBAL_FACTOR_COUNT]; in RENDER_BEGIN_NAMESPACE()
73 BASE_NS::Math::Vec4 factor { 0.0f, 0.0f, 0.0f, 0.0f }; in RENDER_BEGIN_NAMESPACE()
H A Drender_data_store_render_pods.h426 BASE_NS::Math::Vec4 userFactors[PostProcessConstants::USER_GLOBAL_FACTOR_COUNT];
434 BASE_NS::Math::Vec4 renderTimings { 0.0f, 0.0f, 0.0f, 0.0f };
436 BASE_NS::Math::Vec4 factors[PostProcessConstants::GLOBAL_FACTOR_COUNT];
439 BASE_NS::Math::Vec4 userFactors[PostProcessConstants::USER_GLOBAL_FACTOR_COUNT];
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/components/
H A Dinitial_transform_component.h37 BASE_NS::Math::Vec4 vec4Value;
59 explicit InitialTransformComponent(BASE_NS::Math::Vec4 value);
72 InitialTransformComponent& operator=(BASE_NS::Math::Vec4 value) noexcept;
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_util.h28 class Vec4; in BASE_BEGIN_NAMESPACE() local
74 BASE_NS::array_view<BASE_NS::Math::Vec4> outTangents); in CORE3D_BEGIN_NAMESPACE()
79 BASE_NS::array_view<BASE_NS::Math::Vec4> outTangents); in CORE3D_BEGIN_NAMESPACE()
84 BASE_NS::array_view<BASE_NS::Math::Vec4> outTangents); in CORE3D_BEGIN_NAMESPACE()
H A Dmesh_util.cpp369 array_view<Math::Vec4>& outTangents) in CalculateTangentImpl()
422 outTangents[i] = Math::Vec4(tmp.x, tmp.y, tmp.z, w); in CalculateTangentImpl()
428 const array_view<const Math::Vec2>& uvs, array_view<Math::Vec4> outTangents) in CalculateTangents()
435 const array_view<const Math::Vec2>& uvs, array_view<Math::Vec4> outTangents) in CalculateTangents()
442 const array_view<const Math::Vec2>& uvs, array_view<Math::Vec4> outTangents) in CalculateTangents()
455 } else if constexpr (is_same_v<T, Math::Vec4>) { in FillData()
492 vector<Math::Vec4> tangents(countof(pos)); in GeneratePlaneMesh()
535 vector<Math::Vec4> tangents(vertices.size()); in GenerateSphereMesh()
578 vector<Math::Vec4> tangents(vertices.size()); in GenerateConeMesh()
607 vector<Math::Vec4> tangents(vertices.size()); in GenerateTorusMesh()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/ecshelper/PropertyTools/
H A Dcore_metadata.inl49 DECLARE_PROPERTY_TYPE(BASE_NS::Math::Vec4);
285 BEGIN_METADATA(Vec4MetaData, BASE_NS::Math::Vec4)
286 DECL_PROPERTY2(BASE_NS::Math::Vec4, x, "", 0)
287 DECL_PROPERTY2(BASE_NS::Math::Vec4, y, "", 0)
288 DECL_PROPERTY2(BASE_NS::Math::Vec4, z, "", 0)
289 DECL_PROPERTY2(BASE_NS::Math::Vec4, w, "", 0)
290 END_METADATA(Vec4MetaData, BASE_NS::Math::Vec4)
384 DECLARE_CONTAINER_API(MathVec4, BASE_NS::Math::Vec4);

1234