Commit Graph

11538 Commits

Author SHA1 Message Date
zhakesi 2d23a28b32 use byteLength instead of byteCount in tiled-layer (#10008)
* use byteLength instead of byteCount in tiled-layer

* use byteLength to replace byteCount
2022-01-18 13:35:35 +08:00
ChiaNing fea3f70dbc protect meshBuffer max vertex count (#10005)
* protect meshBuffer max vertex count

* format change
2022-01-17 18:50:20 +08:00
ChiaNing 466a2dc97d change macro for meshBuffer (#10001)
* change macro for meshBuffer

* name change

* test used name change
2022-01-17 16:09:49 +08:00
PP 6167bab1aa fix touch event on IMAGE STENCIL mask component (#10000) 2022-01-17 14:03:09 +08:00
zhakesi 22ef32a09f fix TiledLayer's color setting (#9997) 2022-01-14 22:07:23 +08:00
zxx43 7c919215da v3.4.1 Enable model after playing instead of onEnable (#9991)
* Enable model after playing instead of onEnable

* remove unused statements
2022-01-14 19:08:42 +08:00
PP 09f5a029ab support EventDispatcherPriority (#9976)
* expect error requestPermission undefined

* support EventDispatcherPriority

* Revert "expect error requestPermission undefined"

This reverts commit fb08ba61987600c8a9237b4202dc46e22e298636.

* fix systemEvent touch event

* Revert "revert deprecate system event (#9941)"

This reverts commit d69d18dc7b.

* optimize code
2022-01-14 10:48:13 +08:00
ChiaNing 085b4a2d2e fix spriteFrame apply time (#9987) 2022-01-13 17:54:20 +08:00
ChiaNing 35882bf814 clean vb when allocate (#9989) 2022-01-13 17:44:46 +08:00
pandamicro 39fb445e64 Add MeshRenderData.resize for changing both buffer size and ia size (#9986)
* Improve code

* Improve code

* Add MeshRenderData.resize for changing both buffer size and ia size

* Fix tiled map
2022-01-13 15:08:20 +08:00
Santy-Wang e7bc1bf813 adjust PhysX initialization (#9641)
* adjust PhysX initialization

* refine

* refine

* refine comment
2022-01-13 14:07:22 +08:00
troublemaker52025 b3f9f3b6bb fix planar-shadow normal is zero for v3.4.1 (#9975) 2022-01-12 23:26:40 +08:00
pandamicro f177073891 Fix tiled map (#9980) 2022-01-12 23:25:34 +08:00
zxx43 291ec8f834 V3.4.1 particle performance improve (#9979)
* particle performance

* fix eslint error

* just get pass at particle-system
2022-01-12 22:22:01 +08:00
pandamicro 361f1355fd Separate ia range and buffer range in MeshRenderData (#9978)
* Separate ia range and buffer range in MeshRenderData

* Revert graphics modification
2022-01-12 18:23:13 +08:00
fish9167 1a06791908 change gitbub action trigger event (#9973)
修改任务触发方式
2022-01-12 15:38:03 +08:00
ChiaNing 2f1d6ae04e request IA by pool (#9967)
* request IA by pool

* change to use RecyclePool

* fix reset

* ia Start fix

* fix DB
2022-01-12 15:29:55 +08:00
will f369711f40 fix: keep childs with same layer in editbox (#9971) 2022-01-12 14:31:53 +08:00
pandamicro cbcbd028df Merge pull request #9972 from cocos-creator/develop
Merge back develop fixes
2022-01-12 14:29:18 +08:00
zhakesi bc6004be7f avoid one MeshRenderData upload repeat (#9969)
* avoid one MeshRenderData upload repeatly.

* modify code style

* fix eslint

* fix eslint

* code style

* code modify
2022-01-12 14:22:28 +08:00
Leslie Leigh (李的序) a50fd9bb96 Fix skeleton animation cross fade/play won't stop last animation (#9965) 2022-01-12 12:02:01 +08:00
zxx43 6e32470a71 fix particle switch cpu / gpu bug caused by alignment space (#9952)
* fix particle switch cpu / gpu bug caused by alignment space

* ensure sqrt quaternion to be > 1
2022-01-11 23:18:55 +08:00
ChiaNing 733502e4f8 set opacity all time (#9959) 2022-01-11 20:29:57 +08:00
ChiaNing 6b005b8205 fix Opacity cascade (#9958) 2022-01-11 18:56:13 +08:00
fish0607 39c2c64b01 修改任务触发方式 (#9956)
修改任务触发方式(@cocos-robot run test cases)
2022-01-11 17:49:05 +08:00
troublemaker52025 7ca1e42f5c Fix no planar shadow on mac for v3.4.1 (#9953) 2022-01-11 17:39:08 +08:00
DolaMay c6cda96170 Position Delete & Normal Compress: 3.4.1 (#9939)
* Position Delete & Normal Compress

* delete some debug codes

* code review fix
2022-01-07 22:56:14 +08:00
ChiaNing 9c7585cc51 fix some spine bug (#9948)
* fix some spine bug

* change Way

* useless del

* del value

* bug fix
2022-01-07 19:54:54 +08:00
PP 43152b0642 reset swallow state after event handling (#9950)
* reset swallow state after event handling

* update eventMouse

* update

* update
2022-01-07 19:38:41 +08:00
timlyeee 1ffe722c4c Rename JsbBridgeWrapper API (#9923) 2022-01-07 17:43:25 +08:00
PP d69d18dc7b revert deprecate system event (#9941) 2022-01-07 17:27:54 +08:00
pandamicro bd3c30fd4c BufferAccessor refactor for Batcher2D (#9802)
* VB cache add(only simple)

* sliced add

* after rebase

* Extract BufferAccessor from MeshBuffer

* Refactor for linear buffer accessor

* Support simple sprite

* Fix initialization issues

* Fix simple sprite rendering

* Rough adaptation

* tweaks

* Fix LinearBufferAccessor's appendBuffers

* Cleanup mesh buffer codes

* Reorganize ia allocation

* Middleware adaptation & Particle 2d adaptation (#31)

* Middleware adaptation

* particle-2d adaptation

* Initial implementation of static vb accessor

* Complete static vb accessor

* Improve static vb accessor

* Ensure MeshBuffer.byteOffset

* Fix record batch process in static vb accessor

* Fix vb reset

* simple & simple label add (#32)

* Meshbuffer static length (#33)

* set ib only first time

* Meshbuffer static length

* Some name refactor

* remove RenderData.vData

* Improve buffer update logics

* Use appendIndices in fillBuffers

* The quickest version(simple & label can render) (#34)

* Revert "Use appendIndices in fillBuffers"

This reverts commit 0600e26f7eee277c820c3097b1f48f79fcf60890.

* the quickest version

* pass renderScene

* batch

* change batcher update

Co-authored-by: pandamicro <lphuabin@gmail.com>

* Move ia record logic from accessor to batcher

* Make vertexFormat sourced from render data

* sliced & bar-filled (#35)

* radial-filled & tiled & label (#36)

* radial-filled & tiled

* bmfont & char label

* function change

* name change

* Remove uvDirty

fixes

Fix uv update for sprite

* Reduce mesh buffer setDirty

* uv fix

* Format label

* Refactor color and cascade opacity mechanism

* Fix empty render data or chunk absent issue

* fix some uv (#37)

* Fix non stop allocation issue in static vb accessor

* fix bmfont richText & remove uiComponent (#38)

* fix bmfont uv

* fix richText & remove ui Component

* Fix mesh render data batching

* Small fix

* Update for spine

* Formatting jsb spine and editor

* middle ware & particle 2d (#39)

* motion-streak

* dragon Bones add

* tiled map unsafe change

* particle-2d add

* function name change

* some function change (#40)

* Fix RenderData pool usage

* Fix merge issue

* fix misc bug (#41)

* Native adaptation for spine and dragonbones with MeshRenderData

* misc fix (#42)

* Improvements

* Fix ci and improvements

Co-authored-by: ChiaNing <sun.cloud.mo@gmail.com>
2022-01-07 15:43:04 +08:00
Leslie Leigh (李的序) 626f55f050 Fix spine typing (#9942)
* Fix constructor missing

* Replace ლ as _

* Update

* Update
2022-01-07 13:18:23 +08:00
jk20012001 48c5301132 Fix planar-shadow plane offset sign (#9946) 2022-01-07 13:17:33 +08:00
zxx43 bebf8aff0a add cpu & gpu particle culling test (#9945) 2022-01-07 13:16:50 +08:00
PP f278c43206 fix cc_base.d.ts (#9944)
* fix cc_base.d.ts

* update
2022-01-07 11:33:43 +08:00
PP 9b052b31a5 use git clean -xfd (#9943) 2022-01-07 11:00:54 +08:00
SijieWang 32dec7bd16 Revert "Fix spine (#9929)" (#9940)
This reverts commit 600b1e1609.
2022-01-07 10:06:47 +08:00
PP c84b4306ab fix culling deprecated module (#9937) 2022-01-06 23:50:54 +08:00
PP 509f844b13 fix pointer event sorting after activating node (#9906) 2022-01-06 23:20:00 +08:00
troublemaker52025 39ff7f0798 Change define(CC_DIR_SHADOW) to uniform(cc_lightDir.w) for v3.4.1 (#9921)
* change define(CC_DIR_SHADOW) to cc_lightDir.w uniform for v3.4.1

* update

* update 2

* update effect

* update

* update effect 2
2022-01-06 23:08:39 +08:00
PP bc0f912279 fix keyboard event listening on mobile (#9935)
* fix keyboard event listening on mobile

* update deprecation info
2022-01-06 23:05:56 +08:00
GengineJS 68d112530f Multiple Cameras support rendering to the same RenderTexture (#9924)
* Multiple Cameras support rendering to the same RenderTexture

* Modify the postprocessstage getRenderPass function call
2022-01-06 19:46:18 +08:00
Leslie Leigh (李的序) 600b1e1609 Fix spine (#9929) 2022-01-06 18:47:55 +08:00
zxx43 b7e9ae1984 Particle culling loop fix (#9922)
* fix particle culling stop bug

* no need to pause when stop

* add _isSimulating to pause update when culled

* do not to check stop & do not force refresh bounding when stop
2022-01-06 18:31:18 +08:00
PP 1df4a6b623 compability for string SystemEventTypeUnion (#9934)
* compability for string SystemEventTypeUnion

* fix CI
2022-01-06 18:29:27 +08:00
PP 1300cb8ab7 fix audio buffer memory leak on ByteDance and Web platform (#9933) 2022-01-06 18:27:26 +08:00
PP e7761b0640 fix event MOUSE_WHEEL can't be swallowed by node (#9931)
* fix event MOUSE_WHEEL can't be swallowed by node

* dont export pointerEvent2SystemEvent

* fix CI
2022-01-06 18:24:22 +08:00
alpha e5040dc3ee [3.4.1] Fix bug multi touch (#9917)
* 🐛 fix multi touch can not disable

* Update pal/input/touch-manager.ts

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

* Update pal/input/touch-manager.ts

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

Co-authored-by: PP <chinese1236@qq.com>
2022-01-06 18:22:32 +08:00
PP 7506b69979 fix event processor list updating (#9932) 2022-01-06 18:00:28 +08:00