Commit Graph

5317 Commits

Author SHA1 Message Date
Cocos Robot 6da98e70c3 [ci skip][AUTO]: Automated code generating update: 90f6b7c37a51f4c5b0c954cbb5ec7cfd7fd28a41 (#11864) (#11866)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-06 10:14:27 +08:00
James Chen ba4a98a71c Keep the struct in cc::Rect the same as which in ts (#11864)
Co-authored-by: Yiwen <15225434259xue@gmail.com>
2022-07-06 09:54:24 +08:00
Yiwen 83cfd5c401 use the original order to fix the instance lighting and casting shadows (#11865) 2022-07-06 00:00:16 +08:00
Yiwen cca281e483 fix copybufferstotexture (#11860)
* fix copybufferstotexture
2022-07-05 22:24:23 +08:00
timlyeee 91b0f34d9a Fix windows crash when first entering into AudioBuffer scene (#11859) 2022-07-05 21:40:18 +08:00
James Chen a5cdfe2511 fixed #11692: [jsb] More SE_BIND_FUNC_FAST binding for Node transform relevant API (#11854)
* fixed #11692: [jsb] More SE_BIND_FUNC_FAST binding for Node transform relevant API

* Format code
2022-07-05 18:01:28 +08:00
mmyduckx cf346b6e39 add Scene load event when scene::load (#11807) 2022-07-05 16:36:08 +08:00
James Chen b871eb1086 Clear shader source after they're uploaded to GPU. (#11781) 2022-07-05 16:06:54 +08:00
Yiwen f09168ce1b Add a basic sort function for RenderInstancedQueue. (#11193)
* fix instancing draw order
2022-07-05 15:44:08 +08:00
黄森斌 67e9aa1f33 V3.6.0 allow multiple custom scripts exist in project with one same className (#11763)
* use getClassById instead of _getClassById

* use getClassId instead of _getClassId

* public cc.js.getClassId api

* allow className already exists, new one will replace old classObject

* create component use cid

* allow className exist when registing

* custom script className allow duplicated

* revert some comments

* preserve api and deprecate _getClassById and _getClassId

* revert some comments

* revert comment

* Update cocos/core/utils/js-typed.ts

Co-authored-by: PP <chinese1236@qq.com>

Co-authored-by: PP <chinese1236@qq.com>
2022-07-05 15:19:56 +08:00
minggo 54fc7be53f do not use align malloc (#11844)
c++17 supports create an aligned struct
2022-07-05 14:30:12 +08:00
Cocos Robot c5ad77de1b [ci skip][AUTO]: Automated code generating update: e821e0635bef9292af69fb0dc83b2a0a76f99153 (#11845) (#11848)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-05 13:46:43 +08:00
James Chen e41ec8b765 Fix binding of Node.inverseTransformPoint. (#11845) 2022-07-05 13:33:25 +08:00
Cocos Robot e4bf531cbe [ci skip][AUTO]: Automated code generating update: 5795fbc0125abd629c53786120d260a900b4944e (#11842) (#11846)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-05 11:48:41 +08:00
Yiwen d1e141990b fix camera jsb (#11842)
* fix camera jsb
2022-07-05 11:38:11 +08:00
Yiwen 8d4b6cbc96 fix the device crach appeared when the device fallback is performed (#11818)
* fix the device crach appeared when the device fallback is performed

* Fix crash on SM-9005 (#2)

Co-authored-by: James Chen <dumganhar@gmail.com>
2022-07-05 09:56:46 +08:00
James Chen b6deb4ac91 [android] Use optimized compile and link flags to make shared library file (.so) smaller (#11792) 2022-07-04 17:35:41 +08:00
Cocos Robot 7b35d087a7 [ci skip][AUTO]: Automated code generating update: eb24b005f98a42ea87baccf07013cd85bf77d52b (#11775) (#11834)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-04 17:11:32 +08:00
James Chen 9fdfb687e2 Mesh supports half float format and the data can be deleted
1. Add support for converting float to half from some vertex attributes at runtime; 
2. Add Mesh.allowDataAccess property for releasing data after it is uploaded to GPU
2022-07-04 16:59:51 +08:00
Cocos Robot b0183ae9de [ci skip][AUTO]: Automated code generating update: 124fe776af838ea3e854ce8ff3dc422481f3e632 (#11823) (#11826)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-04 13:55:58 +08:00
zhakesi f5b9908624 fix inverseBindposes undefine native platform (#11823)
Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-07-04 11:37:42 +08:00
江战 3887211c60 fix warning & include path (#11825) 2022-07-04 11:25:34 +08:00
minggo 02a1eb0f55 Use raw pointer (#11804)
* Revert "use IntrusivePtr to share object (#11729)"

This reverts commit 8caec59711.

* Framebuffer uses weak reference

* make doDestroy reentency
2022-07-04 10:20:07 +08:00
Cocos Robot 98a53fc7a8 [ci skip][AUTO]: Automated code generating update: 65799bfb36a656db039e78f9b8054ed58df3595d (#11143) (#11822)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-03 23:39:50 +08:00
Santy-Wang 7bc135e1c7 adjust initialization process (#11143)
* adjust init process

* fix bugs

* restructure

* tweak

* delete useless code

* fix ci

* support more platform and fix some bugs

* mark internal

* tweak

* add docs

* add docs and little adjustment

* fix bugs

* adjust decorator execute order

fix mesh error

* fix bugs

* revert some change

* revert auto-generated code

* revert auto-generated code
2022-07-03 21:16:09 +08:00
timlyeee adc1eb6942 [Bug] fix executable check (#11820) 2022-07-02 22:23:06 +08:00
troublemaker52025 913aec8227 reduce instanced queue recordCommandBuffer at render-additive-light-queue v3.6.0 (#11798) 2022-07-01 19:33:36 +08:00
minggo 699c6c58d2 some refactor (#11810)
- put related codes together
- use more meaningful variable names
- do not use temple vector as possible
2022-07-01 19:00:06 +08:00
timlyeee 924f5136c0 fix mac (#11813) 2022-07-01 18:46:54 +08:00
jk20012001 402cf1602a code style: rename spotlightingmap->spotshadowmap (#11800) 2022-07-01 16:17:52 +08:00
timlyeee a69576912b add win64 release, check after clean (#11805)
* add win64 release, check after clean
2022-07-01 16:17:02 +08:00
Cocos Robot e13f1ed021 [ci skip][AUTO]: Automated code generating update: 5770a3d382506ed1bd87d2564d4ec1060b5d54a3 (#11803) (#11806)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-01 15:15:57 +08:00
James Chen cc07c54204 Fix crash if device doesn't support vulkan or gles3 (#11803) 2022-07-01 14:59:34 +08:00
timlyeee b8cc10e649 [fix bug]1. crash when create mesh with _struct undefined, 2. when get property from material (#11762) 2022-07-01 10:17:11 +08:00
Santy-Wang 6e995a866c adjust decorator execute order (#11794)
fix mesh error
2022-07-01 10:16:11 +08:00
James Chen 2f8e0642b0 Add cmake option USE_WEBP to enable/disable webp image support. (#11790) 2022-07-01 09:49:27 +08:00
Cocos Robot 1bbda335fb [ci skip][AUTO]: Automated code generating update: e61dc81f3d3283aa7ef1167c5dcd234596a1ecd8 (#11778) (#11796)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-01 09:48:24 +08:00
mmyduckx 6ec766ae20 change Mac simulatorApp from debug to release (#11755) 2022-07-01 09:47:50 +08:00
troublemaker52025 98b1eea826 [v3.6.0] fix switch scenes clash (#11778)
* fix switch scenes clash for v3.6.0

* update

* update

* fix ci error
2022-06-30 23:38:12 +08:00
Cocos Robot 92580e5ef3 [ci skip][AUTO]: Automated code generating update: c7bce316343e2db9d99cdd4adafdfde1f1d87946 (#11782) (#11788)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-06-30 18:01:39 +08:00
Cocos Robot 59879c8ef9 [ci skip][AUTO]: Automated code generating update: e0f3d953690be9d9c4365e1d9e45d79a89f3be2f (#11772) (#11782)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-06-30 17:13:37 +08:00
jk20012001 7d42e2d48b fix #12702 lighting disappear with temperatureRGB lights (#11780) 2022-06-30 17:12:43 +08:00
James Chen f8a2d9f29e Update render-config.json, add cmake macro for geometry-renderer & debug-renderer modules. (#11767) 2022-06-30 17:10:59 +08:00
minggo 6bb5f9d447 use smart pointer and remove unneeded codes (#11750) 2022-06-30 17:01:17 +08:00
minggo 3fd06707ab use smart pointer as possible (#11754) 2022-06-30 17:00:51 +08:00
James Chen 746bc1e571 Revert to use c++17 std::shared_mutex in ReadWriteLock.h (#11760) 2022-06-30 16:58:54 +08:00
李吉林 1f12c3e88e fix geometry renderer update buffer in metal (#11772)
* fix geometry renderer update buffer in metal
2022-06-30 16:37:07 +08:00
Zeqiang Li da29f65e09 vk android compile issue' (#11770) 2022-06-30 15:35:52 +08:00
troublemaker52025 21b6f7bdd7 Fix spot shadow and punctual light errors (#11758)
* reduce Instanced-queue commit v3.6.0

* fix spot light culling error

* fix spot light shadow culling error && fix instanced and batched queue use dnymicOffset error && optimize spot light no cast shadow will error

* update

* update 2

* update 3

* update 4

* update 5

* use lightPassPool

* native engine use AdditiveLightPass

* delete spot light `hasCastShadowObjects` func

* update
2022-06-30 14:36:31 +08:00
徐兵 25a0ed782e fix crash on vivoX7Plus from issue #10779 (#11757) 2022-06-30 14:12:10 +08:00