Commit Graph

11167 Commits

Author SHA1 Message Date
ChiaNing 24fe3ff784 UI GPU dirven add (#9378)
* uniform

* uniform buffer add

* add dummy IA

* first working version

* misc & data structure optimize

* fix webGL1 bug

* rebase on 3.3

* add maxQuadPerDrawcall by device
现在每个DC能绘制的数量由设备返回的 uniform 数量上限决定

* add index

* index bug fix

* sliced ia add(Not finish)

* change mat4 to vec4

* change stride num

* new vec4PreUI finish

* misc fix

* size & anchor dirty add

* bug fix

* add UICapacityDirty

(cherry picked from commit 417e10c8d3422363d80828539b110b93ee4d3cb1)

* static buffer cache version

(cherry picked from commit 1ffe7e7943cdf9af085aeda5ca218c3442fa9119)

* static buffer update version

(cherry picked from commit 964d9cb5b3230963b2a535acac99a34cde7eb63c)

* cache localbuffer

(cherry picked from commit 641b956def64023e0d47be66bc0c0a37ef1e9791)

* fix setPosition event & fix DS release

* weak sliced & filp tiled mode add

* fix tiled y

* fix sliced bug

* ugly but work filled type add

* update effect

* filled mode effect

* shader fix

* RenderData dirty for render data update

* revert fillbuffer

* misc fix

* support label bmfont by meshBuffer

* fix sliced bug & commit Model

* fixed some render dirty flag bug

* cut code by macro.UI_GPU_DRIVEN

* cut code by UI_GPU_DRIVEN Macro on build

* cut file by UI_GPU_DRIVEN

* I-batcher interface add

* remove render queue cache

* file name change

* file name change

* after merge

* fix for v3.4

* useless remove

* fix texture rotation

* fix sliced when atlas rotation

* useless code remove

* native bind

* update effect

* fix DynamicOffsets bind bug

* PR review fix

* effect encapsulation

* change chunk

* update effect

* update shader

* remove color in fs

* move code

* fix UBO buffer bug

* fix ubo count to 10

* fix vk bind
2021-09-29 22:32:33 +08:00
媛媛 9353275f72 [3.4.0] Add UI_GPU_DRIVEN flag in cc.config (#9367)
* update flags

* update flags
2021-09-29 22:26:44 +08:00
zhangxin 42cce3f8eb replace utils function ,update "sortProp" function (#9425)
* replace utils function ,update  "sortProp" function

replace utils function
-  "getCustomPropElements" -> "updateCustomPropElements"
this function is use to render custom node

update  "sortProp" function
- item may be null

* Update particle-system.js
2021-09-29 22:23:51 +08:00
Yun Hsiao Wu 0abb5828fe update swapchain size when resizing (#9420) 2021-09-29 16:10:56 +08:00
Kun Lin e2dd95f1b0 Update bloom shader (#9417) 2021-09-29 14:37:59 +08:00
zhangxin 16873bb759 Select the previously selected animation (#9401)
* Select the previously selected animation

* if selected splitInfo not exists select last splitInfo

* Deleting a selected animation will select the previous animation

* If select an animation that does not exist, the zeroth animation will be selected

* Update animation.js

* AnimationInfos may be null,so add judgement
2021-09-29 14:32:31 +08:00
timlyeee 1c437eb87e js invoke JAVA and OSX function without reflection (#9344)
Co-authored-by: LX <codingboeuf@jizamaoxuewangdeMacBook-Air.local>
2021-09-29 14:18:35 +08:00
Yun Hsiao Wu 47dc632b4d window size should follow swapchain (#9416) 2021-09-29 12:23:56 +08:00
pandamicro c1bc09da56 Merge pull request #9415 from holycanvas/v3.4.0-sync-3.2.1
sync 3.2.1
2021-09-29 11:57:08 +08:00
Kun Lin 9b6bb5151e Bloom (#9413)
* Bloom

* Fix for code review
2021-09-29 11:44:25 +08:00
santy-wang bd59f37ede Merge branch 'v3.2.1' of github.com:cocos-creator/engine into v3.4.0-physx 2021-09-29 10:40:26 +08:00
PP 411ef58a0a support DPR changed event listener on Web platform (#9410) 2021-09-28 19:25:45 +08:00
zheng han 1314027128 expand nestedPrefab in PrefabAsset onLoad (#9205)
* load nestedPrefab in PrefabAsset onLoad

* use nestedInstanceNodes

* check to expand prefabInstance node

* rename

* fix ci

* useless import

* remove useless code

* change 'instnaceChildren' to 'nestedPrefabInstanceRoots'
2021-09-28 18:01:27 +08:00
troublemaker52025 c606096464 fix multi-light source rendering translucent material for v3.4.0 (#9374)
* fix merge error

* fix merge error

* update

* update

* Add a note

* update

* update

* update ds to globalDS

* safe  destory
2021-09-28 18:00:26 +08:00
troublemaker52025 248dda7868 fix error (#9411) 2021-09-28 16:32:25 +08:00
zxx43 86e01e7cad V3.4.0 particle culling (#9349)
* add particle culling

* add get model function

* add editable particle bounding box

* do not draw bounding box when runtime

* add cull mode

* create bounding when change enable culling

* remove debug particle bounding node

* remove unused variable

* add some api explanations

* remove useless statements & add some annotations

* refine annotation

* update annotations and update bounding

* open CullingMode
2021-09-28 14:17:11 +08:00
GengineJS b12a7ed18d forwardpipeline supports fxaa (#9387)
* forwardpipeline initially supports fxaa

* fxaa completes the adaptation

* update effect

* update postprocess stage

* add comment

* update

* Pipelines run the Postprocess stage

* effect added anti-aliasing judgment

* modify fxaa effect

* update comment

* update native
2021-09-28 11:17:02 +08:00
黄森斌 6c83c322d2 fix image-preview style bug (#9409) 2021-09-28 09:00:03 +08:00
Yun Hsiao Wu fb3cd12061 remove block/buffer.count (#9406) 2021-09-27 16:25:45 +08:00
江战 7a14686b01 fix reflection (#9404) 2021-09-27 09:06:57 +08:00
黄森斌 375500098e allow fbx preview show other model (#9392) 2021-09-26 18:47:51 +08:00
zhakesi 7159b02cf6 add function readPixels for render-texture (#9396)
* add function readPixels for render-texture

* add function comments

* fix eslint error

* comments missing a space character
2021-09-26 18:45:22 +08:00
Santy-Wang 6166745b38 adjust phyx adapter (#9386) 2021-09-26 16:51:45 +08:00
Yun Hsiao Wu 8f553d31ab fix ia state cache (#9399) 2021-09-26 14:45:31 +08:00
PP 28242af04c fix dispatch mouse wheel event (#9397) 2021-09-26 14:02:47 +08:00
zhakesi 0d584b59be remvoe extensions/tilemap not used (#9398) 2021-09-26 13:51:42 +08:00
PP c61907d731 fix input bug (#9393)
* attach mask to node event processor

* compatible with systemEvent

* migrate pointer-event-dispatcher into 2d/event module

* update attachMask
2021-09-26 00:31:10 +08:00
Yun Hsiao Wu 42bd45f6d2 fix onscrenn detection (#9394) 2021-09-25 14:49:05 +08:00
ChiaNing c5f532ed02 fix depthTexture format bug in Runtime (#9388)
* fix depthTexture format bug in Runtime

* gl2
2021-09-24 17:36:47 +08:00
Yun Hsiao Wu 914a4a9a37 fix pipeline.setProfiler (#9382) 2021-09-24 14:41:42 +08:00
zhakesi 8f53785f9a fix dragonbone material miss (#9351) 2021-09-24 13:48:14 +08:00
zhakesi 202aa713bb fix rigid-body miss processing sync Position and Rotation (#9377) 2021-09-24 13:46:18 +08:00
PP 5878829d51 refactor UI pointer event dispatcher (#9363)
* optimize node event processor

# Conflicts:
#	cocos/core/scene-graph/node-event-processor.ts
#	cocos/core/scene-graph/node.ts

* support pointer event dispatcher

* remove event manager, event listener

# Conflicts:
#	cocos/core/director.ts
#	cocos/input/index.ts

* remove docs for event-manager

* fix pointer lock on web

* BREAKING-CHANGE: ui-transform.isHit interface

ud

* fix CI

* fix CI

* activeInHierarchy
2021-09-24 13:34:43 +08:00
pandamicro 78905bae3e Merge pull request #9381 from holycanvas/v3.4-sync
sync v3.3.2
2021-09-24 12:21:55 +08:00
santy-wang 7695780e26 build effect 2021-09-24 12:13:36 +08:00
santy-wang 6391b5705a Merge branch 'v3.3.2' of github.com:cocos-creator/engine into v3.4.0-physx 2021-09-24 12:11:48 +08:00
Yun Hsiao Wu 8d6e75c9b7 restore resize invocation (#9379) 2021-09-24 11:50:44 +08:00
Yun Hsiao Wu 6fb90c355e remove resizable flag (#9373) 2021-09-23 18:34:44 +08:00
troublemaker52025 4915e31f41 Culling performance optimization for v3.4.0 (#9371)
* fix merge error

* use scene bounding box not casts bounding box
2021-09-23 18:33:53 +08:00
Yun Hsiao Wu 9d3c0a9eac workaround R11 vk shader driver bug (#9376) 2021-09-23 18:32:19 +08:00
Yun Hsiao Wu e2a16f44ad effect: subpass support (#9364) 2021-09-23 17:08:29 +08:00
Santy-Wang e8cf9a0ada export active-in-hierarchy-changed event (#9369) 2021-09-23 14:22:18 +08:00
Santy-Wang 75a22d4b98 support require component array (#9366)
* support require component array

* fix lint

* refine
2021-09-23 14:00:55 +08:00
Myway 79fffed239 fixed terrain reset index buffer (#9352) 2021-09-22 17:58:19 +08:00
troublemaker52025 5bc2063ab8 Add automatically calculate the shadow distance v3.4.0 (#9355)
* Add automatically calculate the shadowDistance for v3.4.0

* update

* Unify color manipulation in ambient

* use protected

* update

* Improve implementation

* Fix ci

* Reorder import

Co-authored-by: pandamicro <lphuabin@gmail.com>
2021-09-22 17:05:28 +08:00
PP 6f33b656ec fix multi input instance (#9361) 2021-09-22 16:03:56 +08:00
linshunjun 7d7a06b40d update-twoside-material (#9348)
* update-twoside-material

* update-twoside-material
2021-09-22 15:26:49 +08:00
pandamicro 4c17f85ced Unify color manipulation in ambient (#9359) 2021-09-22 15:26:25 +08:00
troublemaker52025 731fd344f1 update toon shader for v3.3.2 (#9354) 2021-09-22 14:26:33 +08:00
PP 81fdaf346d support input module (#9327)
* support input module

* don't export eventManager
2021-09-18 19:25:08 +08:00