38 Commits

Author SHA1 Message Date
Santy-Wang
57a5350304 Support using math lib in wasm (#16062)
* Allow using math lib in wasm

* revert some change
2023-08-29 16:29:44 +08:00
Yiwen
b6abb65171 Math tune cpp (#14526)
* fix problem, add missing functions for vec4

* add unit test for math lib, review geom lib, fix comment, clean code

* revert changes on native math lib

* fix typo, cancel deprecates

* fix csm layer frustum usage

* tune document

* restore native changes

* stage math

* correct frustum

* add more unit test

* fix mistakes introduced in the last commit

* add missing changes

* update

* update deprecated information, rename interfaces

* fix operator priority issue

* fix math library related issues
2023-03-12 15:58:07 +08:00
pandamicro
89a7f644cf Merge branch 'v3.7.2' into develop
# Conflicts:
#	cocos/core/global-exports.ts
#	cocos/core/math/quat.ts
#	native/cocos/cocos-version.h
#	package.json
2023-02-13 18:00:41 +08:00
李吉林
bdffc36ed7 fix mat4 getRotation (#14183) 2023-02-09 14:24:20 +08:00
pandamicro
8eb177b53d Merge remote-tracking branch 'cocos-for-editor/v3.7.0' into develop
# Conflicts:
#	README.md
#	pal/audio/minigame/player-minigame.ts
2022-12-30 19:30:21 +08:00
pandamicro
afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
minggo
0b10facebc index start from 0 (#13828) 2022-12-15 16:04:33 +08:00
江战
046a2b1378 Re-impl CC_ASSERT & CC_ASSERTF (#13588) 2022-12-05 17:12:30 +08:00
minggo
aba9fdb63f Merge branch 'v3.6.1' into merge_v3.6.1 2022-09-02 20:08:18 +08:00
James Chen
d1e7907c02 fixed #12176 :Add approxEquals method for Mat3/Mat4/Quaternion/Vec2/Vec3/Vec4. (#12610) 2022-09-01 14:37:18 +08:00
James Chen
aba4cd8fa8 The input argument of Mat4::toRTS should be in the first order and const reference, output arguments should be pointer. (#12172) 2022-07-25 10:22:39 +08:00
江战
e7eeab9340 3.6 remove Mat4::transformVector for Vec3 (#12088)
* use Vec3::transformMat4 to replace Mat4::transformVector
2022-07-20 19:02:41 +08:00
minggo
271cc5cf23 Remove some format rule (#10919)
* remove some rules
* format all codes with new format rule
2022-05-04 13:09:24 +08:00
minggo
cd48cf7106 Replace CCASSERT with CC_ASSERT (#10682)
* replace CCASSERT with CC_ASSEERT
2022-04-10 16:03:46 +08:00
Cocos Robot
df50878b14 [ci skip][AUTO]: Automated clang-format update: 735860a2aa (#10560) (#10570)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-29 16:40:20 +08:00
minggo
1a9d49e4c6 replace std::list/std::array with ccstd::list/ccstd::array (#10560)
* replace std::list/std::array with ccstd::list/ccstd::array
2022-03-29 16:36:53 +08:00
yangchao
8ceabc5f3f Fix 3.6 linux compile (#4166)
* std::sinf not work on linux, if not  c++17
2022-01-13 13:55:45 +08:00
minggo
5410a48a58 Implement more logic in native (#4131)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
Co-authored-by: dumganhar <dumganhar@gmail.com>
Co-authored-by: mmyduckx <308303735@qq.com>
Co-authored-by: Patrice Jiang <397136899@qq.com>
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
2022-01-07 18:39:40 +08:00
oahcy
5379e6ef35 引擎适配linux平台 (#4035) 2021-11-29 17:17:15 +08:00
troublemaker52025
46976eff2d Shadow culling for v3.3.1 (#3810) 2021-09-02 19:34:51 +08:00
GengineJS
b8f54069c0 [Add] Native scene object update function (#3638) 2021-06-22 16:41:13 +08:00
minggo
c98a1251a0 Revert "[add] Native scene object update function (#3602)" (#3634)
This reverts commit 8cc944277f.
2021-06-18 18:12:50 +08:00
GengineJS
8cc944277f [add] Native scene object update function (#3602) 2021-06-18 17:34:06 +08:00
cary
965037568c Modify the memory pool and remove the deprecated code. (#3599) 2021-06-10 09:06:27 +08:00
cary
d77dbb3a53 implement scene management in native(#3584) 2021-06-02 17:22:33 +08:00
minggo
5b6545941f treat warning as error for math (#3327)
* treat warning as error for math
2021-03-18 15:51:39 +08:00
minggo
826babfa64 Format code (#3217) 2021-01-13 14:49:32 +08:00
minggo
affec13856 revert PR3076 (#3118) 2020-12-16 09:35:58 +08:00
troublemaker52025
e4454cb32e fix metal shadow upside down (#3076) 2020-12-12 18:19:38 +08:00
troublemaker52025
bffaf3f395 Add spot light shadow for C++ (#2978) 2020-11-11 10:15:54 +08:00
coulsonwang
b504111fee sync native pipeline (#2868) 2020-10-12 15:55:02 +08:00
coulsonwang
de380ae677 fix native pipeline (#2734) 2020-08-31 09:32:13 +08:00
minggo
7efee066fd Remove duplicate (#2597) 2020-06-19 11:07:21 +08:00
cary
88dd29cbb4 fix shadow error of 3d-model. (#1777)
* fix shadow error of 3d-model.

* add node judgement
2019-07-24 15:26:12 +08:00
Jare Guo
d9bd3d763c update license (#1089)
* updating license

* update license
2018-02-01 15:20:01 +08:00
pandamicro
bcbc4e1131 Upgrade cocos/math & cocos/network to v3.13 2016-08-05 18:13:16 +08:00
Wenhai Lin
94c95d5838 Withespaces does matter. 2016-03-31 23:50:02 +08:00
Wenhai Lin
a6dbf31dcf cocos 2d lite version 2016-03-29 17:55:48 +08:00