Commit Graph

3607 Commits

Author SHA1 Message Date
lawrence-liuyue 6b764d2e33 Enable Subpass in deferred pipeline (#9419)
* enable subpass in deferred pipeline

* subpass fix compile error in opengl

* build effects
2021-10-03 17:22:54 +08:00
ChiaNing a360eec69b fix canRenderBug when color change (#9437) 2021-09-30 18:00:59 +08:00
Myway 6d0622245b rename _transformUpdated to _localDataUpdated, class Model and SkinningModel (#9432) 2021-09-30 16:54:01 +08:00
zheng han 7c007a58de fix bug when mountedChild is a PrefabInstance (#9424) 2021-09-30 12:09:48 +08:00
J.C 70c8ec2069 fix #9362 (#9365)
* fix #9362

* fix eslint error

Co-authored-by: J.C <1571995@qq.com>
Co-authored-by: pandamicro <lphuabin@gmail.com>
2021-09-30 11:39:00 +08:00
troublemaker52025 96b1173b74 fix shadow.fixedArea mode culling error for v3.4.0 (#9422)
* fix shadow.fixedArea mode culling error for v3.4.0

* fix model no bounding
2021-09-30 11:30:53 +08:00
PP 9b7cbc8298 optimize DPR change event listener (#9421)
* optimize DPR change event listener

* cache previous DPR when resize callback

update

* support all web platform
2021-09-30 10:23:45 +08:00
DolaMay a785144943 cluster ts engine v340 code (#9405)
* cluster ts engine v340 code

* add macro to enable/disable cluster feature

* fix cluster switch bug
2021-09-30 10:16:53 +08:00
pandamicro 9a3a897b12 Fix web canvas adaptation with resize event (#9429) 2021-09-30 09:52:58 +08:00
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
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
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
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
Yun Hsiao Wu fb3cd12061 remove block/buffer.count (#9406) 2021-09-27 16:25:45 +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
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
pandamicro 4c17f85ced Unify color manipulation in ambient (#9359) 2021-09-22 15:26:25 +08:00
PP 81fdaf346d support input module (#9327)
* support input module

* don't export eventManager
2021-09-18 19:25:08 +08:00
troublemaker52025 93f5fa9c2e fix receive shadow for v3.3.2 (#9347) 2021-09-18 15:57:23 +08:00
Santy-Wang b608ff8315 optimize render texture (#9342)
* optimize render texture

* refine
2021-09-18 12:04:39 +08:00