Commit Graph

906 Commits

Author SHA1 Message Date
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
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
zhakesi 4644228090 fix binding inverseBindposes (#12205) 2022-07-26 20:14:19 +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
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
bofeng-song 7c8492c668 remove unneeded code, gameActivity has been ensured the render lifecycle (#11897) 2022-07-08 18:20:38 +08:00
Zhang mingzhen b32830a3e8 V3.6.0 batcher2d to native (#11592) 2022-07-08 17:10:48 +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
James Chen e41ec8b765 Fix binding of Node.inverseTransformPoint. (#11845) 2022-07-05 13:33:25 +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
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
Santy-Wang 6e995a866c adjust decorator execute order (#11794)
fix mesh error
2022-07-01 10:16:11 +08:00
James Chen 174ba0eff2 Add macros: CC_USE_GEOMETRY_RENDERER and CC_USE_DEBUG_RENDERER to control these debugging features. (#11740) 2022-06-30 10:25:02 +08:00
mmyduckx 4fdf948d24 refactor downloaderTask API style (#11697) 2022-06-29 11:34:15 +08:00
mmyduckx 4b7294a503 fix mac SimulatorApp not init fileUtils when used. (#11743) 2022-06-29 11:28:48 +08:00
James Chen 8fcfed75ca [jsb] Fix that BufferAsset is not bound correctly. (#11695)
* [jsb] Fix that BufferAsset is not bound correctly.
2022-06-24 18:44:17 +08:00
timlyeee 23e10124ef V3.6.0 get pcm buffer from audio (#11521) 2022-06-24 09:39:13 +08:00
timlyeee f8df5aa13a Fix simulator broken (#11679) 2022-06-23 18:37:52 +08:00
minggo f3c84376f2 remove useless log (#11653) 2022-06-23 11:50:04 +08:00
Zeqiang Li c61a02f807 3.6.0 barrier interface (#11571)
* gfx pipelinebarrier interface
2022-06-22 16:49:50 +08:00
troublemaker52025 0d558dd03b [v3.6.0] fix deferred pipeline has no shadow && merge error [shadow biase, spotLight.aspect] (#11636)
* force deferred pipeline enable receive shadow for all objects in shading pass

* fix shadow bias and spot aspect code according to merge conflict from 3.5.1 to 3.6
2022-06-22 10:08:24 +08:00
ChiaNing f2a9607aa4 The base version of sorting priority add (#11599)
* sorting Priority add

* fix CI

* name change

* binding add

* name change to priority

* bind remove

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-06-20 17:54:31 +08:00
Yiwen fcd873895d add a method to force update the descriptor (#11550)
* add a method to force update the descriptor
2022-06-16 17:40:33 +08:00