Commit Graph

926 Commits

Author SHA1 Message Date
jk20012001 4ad23f2193 fix submeshes have different instancing options (#12786) 2022-09-23 16:55:04 +08:00
zhakesi c7761e5c19 middleware2d components rendering in native mode (#12788)
* middleware2d components rendering in native mode

* support spine/dragonbones set enable batch

* support spine rendering in batching mode

* get batcher2d instance from root

* process about with type conversion

* fix some code style

* use material hash to merge draw batch

* deal with fill z

* fix dragonbones fill z

* remove some code no used any more

* refactoring some code

* modify some code

* add free memory

* fix clang-tidy

* delete mesh-buffer-layout in destructor

* byte alignment
2022-09-20 13:31:33 +08:00
江战 fc05e55032 3.6 genbindings abort on error (#12659)
* check return code

* Update native/tools/tojs/genbindings.py

* am update external
2022-09-02 18:50:28 +08:00
fqamic 1946f2d39d improve: update engine to support xr development (#12653)
* improve: update engine to support xr development
1.detach thread support more device
2.revert the modification of xr for makeCurrent
3.sync android templates change to xr
4.fix monado runtime templates, excessive permission

* improve: update engine to support xr development
1.add xr pico templates
2.update xr huaweivr templates
3.add xr api file
4.fix 'GFXDevice.h' base header file problem
2022-09-02 15:25:40 +08:00
zhakesi a388541901 spine/dragonbones renderdata use rgba8 color format (#12619)
* add color4b format

* render-2d adapter color format

* spine dragonbones use simple color

* rename V3F_T2F_C4B

* use attributes to init mesh buffer

* remove Vertex2DFormat
2022-09-01 21:44:19 +08:00
James Chen 7b65436e02 fixed #12625: The prototype chain for mesh.maxPosition is not Vec3 on version 3.6.0 (#12628) 2022-09-01 15:48:25 +08:00
Zhang mingzhen 0410f097e1 particle local mode on native (#12624)
* particle local mode on native

* remove rebundant code

* when positionType changes, update entity data

* move to onEnable

* rename as renderTransform

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-01 11:35:19 +08:00
hyde zhou b7c720eb3b improve xr pipeline implementation (#12506) 2022-08-22 19:11:18 +08:00
QingliWang 6a8f53b186 Add features for XR developement. (#12413)
* Change Android mainloop, add global config and template projects for XR.

* Change gfx/gles device's process flow for XR, working with other PRs, waiting.

* Change gfx/Vulkan device's process flow for XR, working with other PRs, waiting.

* Change render process for XR.

* Develop XR input and events.

* Develop 3D feature of UI widgets and raycast effect for XR.

Co-authored-by: fqamic <fqamic@vip.qq.com>
2022-08-22 16:34:45 +08:00
徐兵 5f07ea0294 add rotation feature for skybox (#12481) 2022-08-19 18:00:18 +08:00
minggo 5778aab354 Merge branch 'v3.6.0' into merge_v3.6 2022-08-08 10:49:46 +08:00
Santy-Wang 5e2aea4296 bind clearStaticDrawInfos (#12335) 2022-08-04 22:59:52 +08:00
Zhang mingzhen 7bbce32970 static drawinfo should be reset when flushing assembler (#12333)
* static drawinfo should be reset  when flushing assembler

* add reset drawinfo method

* revert mistake

* fix mistakes

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-04 22:14:23 +08:00
timlyeee accb187a9b Add missing methods for Material (#12321) 2022-08-04 10:18:43 +08:00
minggo 684d560dfc bind missing functions (#12318) 2022-08-03 18:42:19 +08:00
ChiaNing 985f4fd94c Fix pass hash when blend change (#12294)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-02 16:05:24 +08:00
zhakesi dc91a469ae use native middleware buffer (#12233)
* use native middleware buffer

* fix clang-tidy

* fix clang-tidy

* set useLinkData as meshBuffer's property

* refactoring some code

* set 2d.ini

* fix word component

* fix clip middleware2d

* ...

* function attributes to getAttributes
2022-07-28 19:00:30 +08:00
James Chen fe0fd229a4 Fix CocosApplication doesn't unregister engine event when restarting. (#12250) 2022-07-28 18:15:35 +08:00
minggo f3ed70bc44 Merge pull request #12192 from minggo/merge_v3.6
Merge v3.6
2022-07-28 11:53:21 +08:00
Zhang mingzhen ecd94ea596 add vbColorDirty for native color filling (#12221)
* set colorDirty as true initially.

* move it to onEnable

* add vbColorDirty to protected native code sorting

* for complete padding

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-27 19:28:39 +08:00
江战 c32ba5d38c fix include order & revert boost/hash (#12212) 2022-07-27 13:46:01 +08:00
zhakesi 4644228090 fix binding inverseBindposes (#12205) 2022-07-26 20:14:19 +08:00
minggo e0bfd1d380 Merge branch 'v3.6.0' into merge_v3.6 2022-07-26 12:01:26 +08:00
timlyeee dd25eee8ba disable debug renderer for v3.6 to ignore feature cropping (#12181) 2022-07-25 17:45:30 +08:00
Santy-Wang 07facb9bf1 optimize memory (#12157) 2022-07-23 15:28:25 +08:00
zhakesi e18e900162 support spine/dragonbones use local native batcher2d (#12141)
* support spine/dragonbones use local native batcher2d

* avoid tiled map use local

* render-entity add set use local

* modify some code

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-07-22 12:54:15 +08:00
hyde zhou 8dfcbabeb0 [V3.6.0 gfx] auto barrier added (#12118)
auto barrier added.
Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com>
2022-07-21 23:21:23 +08:00
James Chen 235d0e9017 Fix TextureCube binding. (#12133) 2022-07-21 22:36:46 +08:00
徐兵 2e69f679d3 reflection convolutional map baking speed optimization (#12112) 2022-07-21 19:20:42 +08:00
hyde zhou 0c82b143fc [V3.6.0 pipeline] added web forward and deferred pipelines (#11646)
* added custom web forward and deferred pipelines
2022-07-21 12:40:13 +08:00
Santy-Wang 2ae2d94b93 optimize performance (#12080)
* optimize performance

* fix binding

* fix bugs

* fix bugs

* fix crash

* remove useless func

* fix ci

* fix ci

* fix ci
2022-07-21 11:50:43 +08:00
troublemaker52025 d5f77d0af1 [optimization] Split csm ubo v3.6.0 (#12072)
* split csm ubo v3.6.0

* update

* Modify *.meta  file to ignore material upgrade

* update

* update

* update 2

* use better struct padding and save memory

* update mate

* fix ci error

* memory alignment

* update

* update 2

* chenge func name

* update
2022-07-20 22:58:25 +08:00
江战 68a9972729 update readme (#12095) 2022-07-20 15:30:16 +08:00
江战 8ef9c6b12d reduce log (#12092) 2022-07-20 14:36:30 +08:00
James Chen 131fb74b32 Fix the parameter of TextureCube::setImage, support to pass nullptr to it, keep the same logic as which in web (#12062) 2022-07-20 11:09:24 +08:00
ChiaNing d9c93a57c7 remove blend state on fillPass function (#12068)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-19 17:18:38 +08:00
Zhang mingzhen 12625f09d8 RenderDrawInfo code sorting (#12055)
* remove blendHash and DrawInfoAttrLayout

* remove code in cpp

* remove blend hash in ts

* remove blendhash of middleware in ts

* remove rebundant code

* remove stencilStage in drawinfo

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-19 13:35:54 +08:00
zhakesi 51d999e0e6 native batcher2d tiled-map addUserNode complete (#12059) 2022-07-19 10:53:42 +08:00
minggo d40b8739bc Merge branch 'v3.6.0' into develop_merge_v3.6 2022-07-18 10:38:14 +08:00
ChiaNing 6b64c7e8da Remove custom Material flag (#12021)
* Remove custom Material flag

* remove commit model material

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-16 09:36:32 +08:00
James Chen 34f4c1c2eb Fix typo of TextureCube::setMipmapAtlas and update property binding in tojs/assets.ini (#12016) 2022-07-15 16:10:33 +08:00
James Chen f644e78e5c [v3.6.0] Refactor native Batcher2d lifecycle (#12011) 2022-07-15 14:17:33 +08:00
江战 38e8a689e1 Support to send log to server, currently is only used internally by QA team (#11832) 2022-07-13 16:23:39 +08:00
Zhang mingzhen 05bde85ed7 V3.6.0 batcher2d code sorting (#11943)
* parentOpacity move to RenderEntity

(cherry picked from commit f1d9b5cb55c1912bd61ba490ec46ce7108097556)

* parentOpacity remove from entity and put into funtion parameters

* unify dynamic and static handle process

* reform entity shared buffer structure

* modify default value of struct

* set drawinfo type for spine/dragonbones

* remove legacy method

* reform color .type as uint8 from float

* CI fix

* remove static-cast

* CI fix

* CI fix

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
Co-authored-by: liqiao <liqiao@cocos.com>
2022-07-13 15:48:31 +08:00
James Chen 9f615e1fec fixed #11911: [v3.6][optimization] Use External ArrayBuffer to optimize the shared memory in Node (#11926) 2022-07-13 13:50:53 +08:00
李吉林 f6a41a76a1 export DebugRenderer to ts (#11946)
* export DebugRenderer to ts
2022-07-12 22:33:36 +08:00
Zhang mingzhen 731d703648 Mask to native bug fix (#11913)
* mask inverted bug fix

(cherry picked from commit dc695c992983042ca7af3ac91051db40049dfbd1)

* sync customMaterial for commitIA of middleware in native

* fix CI

* remove abundant mask code

* add nolint

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-11 13:43:56 +08:00
timlyeee d19aa952a3 [Bug fix] copy v8 dlls for unit test and simulator (#11918) 2022-07-11 11:28:56 +08:00
bofeng-song 113fad0259 refine: rename windowHanler to windowHandle, rename onDestory to onDestroy (#11907) 2022-07-09 13:54:18 +08:00
Zhang mingzhen 0560b566df V3.6.0 batcher2d mask to native (#11905)
* native mask 1

* native rect mask part2

(cherry picked from commit 363c6a545302c15bbbd33285c172855e667c308d)

* fix code specification

* mask fillPass parameters

* fix mistake

* fillpass material condition

* mask to native generate batch

* revert wrong remove

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-09 00:57:25 +08:00