Commit Graph

494 Commits

Author SHA1 Message Date
Myway 6d0622245b rename _transformUpdated to _localDataUpdated, class Model and SkinningModel (#9432) 2021-09-30 16:54:01 +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
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 47dc632b4d window size should follow swapchain (#9416) 2021-09-29 12:23:56 +08:00
Kun Lin 9b6bb5151e Bloom (#9413)
* Bloom

* Fix for code review
2021-09-29 11:44:25 +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
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 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 e2a16f44ad effect: subpass support (#9364) 2021-09-23 17:08:29 +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
pandamicro 4c17f85ced Unify color manipulation in ambient (#9359) 2021-09-22 15:26:25 +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
Yun Hsiao Wu c4fcb7c547 should update flat buffer when material changes (#9338) 2021-09-17 10:07:44 +08:00
Santy-Wang 8b949169ac adjust buffer memory usage (#9326)
Co-authored-by: pandamicro <lphuabin@gmail.com>
2021-09-16 16:27:17 +08:00
Santy-Wang 8dfe080d8c Merge pull request #9308 from holycanvas/v3.4-sync
sync v3.3.1
2021-09-10 11:19:06 +08:00
Yun Hsiao Wu 79f6ec1fcf handle swapchain resize event (#9305)
* swapchain resize accept surface transform

* rt attachment should support read back
2021-09-09 16:00:02 +08:00
santy-wang c87577b809 Merge branch 'v3.3.1' of https://gitlab.cocos.net/publics/engine into v3.4 2021-09-09 13:33:35 +08:00
troublemaker52025 8c88f0cfe9 fix pcf type not display for v3.3.1 (#9300) 2021-09-08 15:47:12 +08:00
troublemaker52025 40a40a00ef Remove shadow.autoAdapt property for v3.3.1 (#9286)
* Remove shadow.autoAdapt property for v3.3.1

* update
2021-09-06 18:48:26 +08:00
troublemaker52025 d90ae9227f Shadow culling for v3.3.1 (#9152)
* pre culling

* update culling

* update

* update

* update

* update

* add jsb

* fix ci

* update

* update fov to netave-engine

* update Shadow Projection

* update merge

* update

* fix ci error

* update

* update

* update

* update

* update

* update

* update shadow default value

* update boundingBox Method

* update _shadowpos

* update

* update

* update

* update

* rename range to shadowRange
2021-09-02 19:10:03 +08:00
Zeqiang Li d861a08b4b metal extra viewport issue (#9271) 2021-09-02 10:49:48 +08:00
Yun Hsiao Wu 4cf1350fe0 gfx: swapchain refactor (#9030)
* update effect.hideInEditor

* swapchain refactor

* webgl multi draw

* implicit depth/stencil format

* native adapt

* explicit resizable texture

* DrawInfo in InputAssembler

* device cached states

* sync defines

* gfx: empty backend

* update playground

* remove profiler camera

* update effect types

* fix pass.resetUniform
2021-08-31 19:40:50 +08:00
Santy-Wang 93889feac4 Merge pull request #9187 from cocos-creator/v3.3.0
sync V3.3.0
2021-08-16 17:19:58 +08:00
jk20012001 a6dfddc780 Fix spotlight shadow formerge (#9177)
* fix spotlight shadow matrix, lineardepth, selfbias error (#8483)

* Spotlight shadows: Added depthbias in viewspace units

* Remove now unnecessary UBO constants

* Add support for directional lights

* fix spotlight shadow matrix, lineardepth, selfbias error (#8483)

* Fix Spotlight light leaking in backface and compiling error

* fix dirlightview matrix error

* more accuracy for spotlight shadow bias

* Fix face normal bias

* Fix DirLight Soft/Soft2X

* improve performance for ShadowUBO divid op

* remove spotshadow linear mode(can't work with new shadow bias), fix spotshadow linear mode

* fix spot shadow linear mode

* directional light packing mode and disable linear mode

* compiled effects

Co-authored-by: Jamie Anthony Morris <Jamie.Morris@cocos.com>
2021-08-16 14:50:41 +08:00
cary 0a1356a816 Compatible with non-ReadOnly parameters. (#9160) 2021-08-15 22:01:41 +08:00
troublemaker52025 c0c1c0313f update light luminance name for v3.3.0 (#9142)
* update light luminance name for v3.3.0

* update

* add deprecated

* update

* update

* fix ci error

* update

* update

* update
2021-08-06 15:09:25 +08:00
troublemaker52025 977c19dd1e Fix mat world it nan v3.3.0 (#9133)
* fix MatWorldIT will be used Nan for v3.3

* update
2021-08-06 13:08:21 +08:00
GengineJS 950518c251 Fix the incorrect ModelBounds of BakedSkinningModel (#9113) 2021-08-02 17:06:42 +08:00
GengineJS da05275968 Fix the problem that mainlight cannot be closed (#9104) 2021-08-02 10:32:55 +08:00
cary b8ec697a23 Change the sync of native pass to message queue. (#9096) 2021-07-30 10:15:05 +08:00
GengineJS 3fbe3a1ea8 Treat the scene node as the native root node (#9072) 2021-07-29 18:30:42 +08:00
Santy-Wang ad5887440d use debug to print information (#9082)
* use debug to output information

* use info to output some key information
2021-07-28 13:36:13 +08:00
江战 6270f592be 3.3 some optimization (#9069) 2021-07-27 13:38:56 +08:00
GengineJS 13d86798d4 Solve the circular reference between renderscene and nativescene (#9039) 2021-07-23 14:27:05 +08:00
GengineJS 4df80e89f4 Modify the sharing method of node changeFlag (#9016)
* Modify the way to add native instance views

* Modify the sharing method of node changeFlag

* Remove nodepool flagchange
2021-07-21 00:11:51 +08:00
GengineJS 38fd475242 Fixed invalid buffer pool handle (#9011) 2021-07-20 11:40:50 +08:00
GengineJS d482e113d1 [Fix] the problem that the pipeline scene data switch scene ia is null (#8989) 2021-07-16 09:37:27 +08:00
troublemaker52025 9854f33225 fix shadow problem for v3.3.0 (#8916) 2021-07-14 09:26:38 +08:00
GengineJS e0c8544c13 [Fix] Crash caused by real-time mesh generation on the native side (#8942)
* [Fix] Crash caused by real-time mesh generation on the native side

* According to the index removeModel
2021-07-09 16:20:50 +08:00
GengineJS de7039435a Implement native Baked Skinning Model (#8921) 2021-07-01 16:03:32 +08:00
minggo c0ed00c509 Fix memory leak (#8914) 2021-07-01 14:46:28 +08:00
江战 af1251493e updte rootbufferdirty (#8919) 2021-06-30 14:04:00 +08:00
江战 f445c9eec0 Revert "3.3 fix pass flag (#8909)" (#8917)
This reverts commit 6bca79419e.
2021-06-30 13:38:02 +08:00
江战 6bca79419e 3.3 fix pass flag (#8909) 2021-06-30 11:43:37 +08:00
GengineJS eb2532b635 Fix testcase raycast scene (#8902) 2021-06-28 18:11:08 +08:00
GengineJS 45b8cc6d03 [Modify] AABB shared data (#8884) 2021-06-28 15:31:50 +08:00
santy-wang c5dd05fbf1 Merge branch 'v3.1.2' of github.com:cocos-creator/engine into v3.3-merge 2021-06-28 14:40:34 +08:00